You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] lindent rio drivers
Run all rio files through indent -kr -i8 -bri0 -l255, as requested by Alan. rioboot.c and rioinit.c were skipped due to worrisome lindent warnings. Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a941564458
commit
8d8706e2f8
@@ -52,8 +52,7 @@ static char *_board_h_sccs_ = "@(#)board.h 1.2";
|
||||
/*
|
||||
** The shape of the Host Control area, at offset 0x7C00, Write Only
|
||||
*/
|
||||
struct s_Ctrl
|
||||
{
|
||||
struct s_Ctrl {
|
||||
BYTE DpCtl; /* 7C00 */
|
||||
BYTE Dp_Unused2_[127];
|
||||
BYTE DpIntSet; /* 7C80 */
|
||||
@@ -67,8 +66,7 @@ struct s_Ctrl
|
||||
/*
|
||||
** The PROM data area on the host (0x7C00), Read Only
|
||||
*/
|
||||
struct s_Prom
|
||||
{
|
||||
struct s_Prom {
|
||||
WORD DpSlxCode[2];
|
||||
WORD DpRev;
|
||||
WORD Dp_Unused6_;
|
||||
@@ -83,8 +81,7 @@ struct s_Prom
|
||||
/*
|
||||
** Union of the Ctrl and Prom areas
|
||||
*/
|
||||
union u_CtrlProm /* This is the control/PROM area (0x7C00) */
|
||||
{
|
||||
union u_CtrlProm { /* This is the control/PROM area (0x7C00) */
|
||||
struct s_Ctrl DpCtrl;
|
||||
struct s_Prom DpProm;
|
||||
};
|
||||
@@ -92,22 +89,19 @@ union u_CtrlProm /* This is the control/PROM area (0x7C00) */
|
||||
/*
|
||||
** The top end of memory!
|
||||
*/
|
||||
struct s_ParmMapS /* Area containing Parm Map Pointer */
|
||||
{
|
||||
struct s_ParmMapS { /* Area containing Parm Map Pointer */
|
||||
BYTE Dp_Unused8_[DP_PARMMAP_ADDR];
|
||||
WORD DpParmMapAd;
|
||||
};
|
||||
|
||||
struct s_StartUpS
|
||||
{
|
||||
struct s_StartUpS {
|
||||
BYTE Dp_Unused9_[DP_STARTUP_ADDR];
|
||||
BYTE Dp_LongJump[0x4];
|
||||
BYTE Dp_Unused10_[2];
|
||||
BYTE Dp_ShortJump[0x2];
|
||||
};
|
||||
|
||||
union u_Sram2ParmMap /* This is the top of memory (0x7E00-0x7FFF) */
|
||||
{
|
||||
union u_Sram2ParmMap { /* This is the top of memory (0x7E00-0x7FFF) */
|
||||
BYTE DpSramMem[DP_SRAM2_SIZE];
|
||||
struct s_ParmMapS DpParmMapS;
|
||||
struct s_StartUpS DpStartUpS;
|
||||
@@ -116,8 +110,7 @@ union u_Sram2ParmMap /* This is the top of memory (0x7E00-0x7FFF) */
|
||||
/*
|
||||
** This is the DP RAM overlay.
|
||||
*/
|
||||
struct DpRam
|
||||
{
|
||||
struct DpRam {
|
||||
BYTE DpSram1[DP_SRAM1_SIZE]; /* 0000 - 7BFF */
|
||||
union u_CtrlProm DpCtrlProm; /* 7C00 - 7DFF */
|
||||
union u_Sram2ParmMap DpSram2ParmMap; /* 7E00 - 7FFF */
|
||||
|
||||
@@ -59,4 +59,3 @@ struct BOOT_PKT {
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -97,8 +97,7 @@
|
||||
|
||||
#define MAX_RATE B2000
|
||||
|
||||
struct baud_rate /* Tag for baud rates */
|
||||
{
|
||||
struct baud_rate { /* Tag for baud rates */
|
||||
/* short host_rate, *//* As passed by the driver */
|
||||
short divisor, /* The divisor */
|
||||
prescaler; /* The pre-scaler */
|
||||
|
||||
@@ -81,4 +81,3 @@ static char *_rio_cmd_h_sccs = "@(#)cmd.h 1.1" ;
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@ static char *_cmdblk_h_sccs_ = "@(#)cmdblk.h 1.2";
|
||||
** a rup.
|
||||
*/
|
||||
|
||||
struct CmdBlk
|
||||
{
|
||||
struct CmdBlk {
|
||||
struct CmdBlk *NextP; /* Pointer to next command block */
|
||||
struct PKT Packet; /* A packet, to copy to the rup */
|
||||
/* The func to call to check if OK */
|
||||
|
||||
+23
-46
@@ -54,8 +54,7 @@ static char *_cmdpkt_h_sccs_ = "@(#)cmdpkt.h 1.2";
|
||||
** This structure overlays a PktCmd->CmdData structure, and so starts
|
||||
** at Data[2] in the actual pkt!
|
||||
*/
|
||||
struct BootSequence
|
||||
{
|
||||
struct BootSequence {
|
||||
WORD NumPackets;
|
||||
WORD LoadBase;
|
||||
WORD CodeSize;
|
||||
@@ -63,17 +62,14 @@ struct BootSequence
|
||||
|
||||
#define BOOT_SEQUENCE_LEN 8
|
||||
|
||||
struct SamTop
|
||||
{
|
||||
struct SamTop {
|
||||
BYTE Unit;
|
||||
BYTE Link;
|
||||
};
|
||||
|
||||
struct CmdHdr
|
||||
{
|
||||
struct CmdHdr {
|
||||
BYTE PcCommand;
|
||||
union
|
||||
{
|
||||
union {
|
||||
BYTE PcPhbNum;
|
||||
BYTE PcLinkNum;
|
||||
BYTE PcIDNum;
|
||||
@@ -81,28 +77,22 @@ struct CmdHdr
|
||||
};
|
||||
|
||||
|
||||
struct PktCmd
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
struct PktCmd {
|
||||
union {
|
||||
struct {
|
||||
struct CmdHdr CmdHdr;
|
||||
struct BootSequence PcBootSequence;
|
||||
} S1;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
WORD PcSequence;
|
||||
BYTE PcBootData[RTA_BOOT_DATA_SIZE];
|
||||
} S2;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
WORD __crud__;
|
||||
BYTE PcUniqNum[4]; /* this is really a uint. */
|
||||
BYTE PcModuleTypes; /* what modules are fitted */
|
||||
} S3;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
struct CmdHdr CmdHdr;
|
||||
BYTE __undefined__;
|
||||
BYTE PcModemStatus;
|
||||
@@ -111,57 +101,46 @@ struct PktCmd
|
||||
WORD PcSubAddr; /* Address for command */
|
||||
BYTE PcSubData[64]; /* Date area for command */
|
||||
} S4;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
struct CmdHdr CmdHdr;
|
||||
BYTE PcCommandText[1];
|
||||
BYTE __crud__[20];
|
||||
BYTE PcIDNum2; /* It had to go somewhere! */
|
||||
} S5;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
struct CmdHdr CmdHdr;
|
||||
struct SamTop Topology[LINKS_PER_UNIT];
|
||||
} S6;
|
||||
} U1;
|
||||
};
|
||||
|
||||
struct PktCmd_M
|
||||
{
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
struct PktCmd_M {
|
||||
union {
|
||||
struct {
|
||||
struct {
|
||||
uchar PcCommand;
|
||||
union
|
||||
{
|
||||
union {
|
||||
uchar PcPhbNum;
|
||||
uchar PcLinkNum;
|
||||
uchar PcIDNum;
|
||||
} U0;
|
||||
} CmdHdr;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort NumPackets;
|
||||
ushort LoadBase;
|
||||
ushort CodeSize;
|
||||
} PcBootSequence;
|
||||
} S1;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort PcSequence;
|
||||
uchar PcBootData[RTA_BOOT_DATA_SIZE];
|
||||
} S2;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort __crud__;
|
||||
uchar PcUniqNum[4]; /* this is really a uint. */
|
||||
uchar PcModuleTypes; /* what modules are fitted */
|
||||
} S3;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort __cmd_hdr__;
|
||||
uchar __undefined__;
|
||||
uchar PcModemStatus;
|
||||
@@ -170,15 +149,13 @@ struct PktCmd_M
|
||||
ushort PcSubAddr;
|
||||
uchar PcSubData[64];
|
||||
} S4;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort __cmd_hdr__;
|
||||
uchar PcCommandText[1];
|
||||
uchar __crud__[20];
|
||||
uchar PcIDNum2; /* Tacked on end */
|
||||
} S5;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
ushort __cmd_hdr__;
|
||||
struct Top Topology[LINKS_PER_UNIT];
|
||||
} S6;
|
||||
|
||||
@@ -59,4 +59,3 @@
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
+16
-32
@@ -44,15 +44,13 @@ static char *_daemon_h_sccs_ = "@(#)daemon.h 1.3";
|
||||
** structures used on /dev/rio
|
||||
*/
|
||||
|
||||
struct Error
|
||||
{
|
||||
struct Error {
|
||||
uint Error;
|
||||
uint Entry;
|
||||
uint Other;
|
||||
};
|
||||
|
||||
struct DownLoad
|
||||
{
|
||||
struct DownLoad {
|
||||
char *DataP;
|
||||
uint Count;
|
||||
uint ProductCode;
|
||||
@@ -69,8 +67,7 @@ struct DownLoad
|
||||
#define MAX_XP_CTRL_LEN 16 /* ALSO IN PORT.H */
|
||||
#endif
|
||||
|
||||
struct PortSetup
|
||||
{
|
||||
struct PortSetup {
|
||||
uint From; /* Set/Clear XP & IXANY Control from this port.... */
|
||||
uint To; /* .... to this port */
|
||||
uint XpCps; /* at this speed */
|
||||
@@ -83,28 +80,24 @@ struct PortSetup
|
||||
uchar Drain; /* close only when drained */
|
||||
};
|
||||
|
||||
struct LpbReq
|
||||
{
|
||||
struct LpbReq {
|
||||
uint Host;
|
||||
uint Link;
|
||||
struct LPB *LpbP;
|
||||
};
|
||||
|
||||
struct RupReq
|
||||
{
|
||||
struct RupReq {
|
||||
uint HostNum;
|
||||
uint RupNum;
|
||||
struct RUP *RupP;
|
||||
};
|
||||
|
||||
struct PortReq
|
||||
{
|
||||
struct PortReq {
|
||||
uint SysPort;
|
||||
struct Port *PortP;
|
||||
};
|
||||
|
||||
struct StreamInfo
|
||||
{
|
||||
struct StreamInfo {
|
||||
uint SysPort;
|
||||
#if 0
|
||||
queue_t RQueue;
|
||||
@@ -115,59 +108,50 @@ struct StreamInfo
|
||||
#endif
|
||||
};
|
||||
|
||||
struct HostReq
|
||||
{
|
||||
struct HostReq {
|
||||
uint HostNum;
|
||||
struct Host *HostP;
|
||||
};
|
||||
|
||||
struct HostDpRam
|
||||
{
|
||||
struct HostDpRam {
|
||||
uint HostNum;
|
||||
struct DpRam *DpRamP;
|
||||
};
|
||||
|
||||
struct DebugCtrl
|
||||
{
|
||||
struct DebugCtrl {
|
||||
uint SysPort;
|
||||
uint Debug;
|
||||
uint Wait;
|
||||
};
|
||||
|
||||
struct MapInfo
|
||||
{
|
||||
struct MapInfo {
|
||||
uint FirstPort; /* 8 ports, starting from this (tty) number */
|
||||
uint RtaUnique; /* reside on this RTA (unique number) */
|
||||
};
|
||||
|
||||
struct MapIn
|
||||
{
|
||||
struct MapIn {
|
||||
uint NumEntries; /* How many port sets are we mapping? */
|
||||
struct MapInfo *MapInfoP; /* Pointer to (user space) info */
|
||||
};
|
||||
|
||||
struct SendPack
|
||||
{
|
||||
struct SendPack {
|
||||
unsigned int PortNum;
|
||||
unsigned char Len;
|
||||
unsigned char Data[PKT_MAX_DATA_LEN];
|
||||
};
|
||||
|
||||
struct SpecialRupCmd
|
||||
{
|
||||
struct SpecialRupCmd {
|
||||
struct PKT Packet;
|
||||
unsigned short Host;
|
||||
unsigned short RupNum;
|
||||
};
|
||||
|
||||
struct IdentifyRta
|
||||
{
|
||||
struct IdentifyRta {
|
||||
ulong RtaUnique;
|
||||
uchar ID;
|
||||
};
|
||||
|
||||
struct KillNeighbour
|
||||
{
|
||||
struct KillNeighbour {
|
||||
ulong UniqueNum;
|
||||
uchar Link;
|
||||
};
|
||||
|
||||
@@ -56,4 +56,3 @@ static char *_rio_defaults_h_sccs = "@(#)defaults.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -46,5 +46,3 @@ static char *_rio_enable_h_sccs = "@(#)enable.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
@@ -80,6 +80,3 @@
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -151,4 +151,3 @@ struct FORM_PARTITION {
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -54,8 +54,7 @@ void FillSlot(int, int, uint, struct Host *);
|
||||
/* riocmd.c */
|
||||
int RIOFoadRta(struct Host *, struct Map *);
|
||||
int RIOZombieRta(struct Host *, struct Map *);
|
||||
int RIOCommandRta(struct rio_info *, uint, int (* func)( struct Host *,
|
||||
struct Map *));
|
||||
int RIOCommandRta(struct rio_info *, uint, int (*func) (struct Host *, struct Map *));
|
||||
int RIOIdentifyRta(struct rio_info *, caddr_t);
|
||||
int RIOKillNeighbour(struct rio_info *, caddr_t);
|
||||
int RIOSuspendBootRta(struct Host *, int, int);
|
||||
|
||||
@@ -49,8 +49,7 @@ static char *_host_h_sccs_ = "@(#)host.h 1.2";
|
||||
** Host data structure. This is used for the software equiv. of
|
||||
** the host.
|
||||
*/
|
||||
struct Host
|
||||
{
|
||||
struct Host {
|
||||
uchar Type; /* RIO_EISA, RIO_MCA, ... */
|
||||
uchar Ivec; /* POLLED or ivec number */
|
||||
uchar Mode; /* Control stuff */
|
||||
|
||||
@@ -53,5 +53,3 @@ static char *_rio_hosthw_h_sccs = "@(#)hosthw.h 1.2" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
@@ -118,5 +118,3 @@ the definitions from Linux, and is incompatible... */
|
||||
#define RIO_B64000 0x12 /* 64000 baud */
|
||||
#define RIO_B115200 0x13 /* 115200 baud */
|
||||
#define RIO_B2000 0x14 /* 2000 baud */
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,3 @@ static char *_rio_lrt_h_sccs = "@(#)lrt.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,3 @@ static char *_rio_ltt_h_sccs = "@(#)ltt.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -48,6 +48,3 @@ static char *_rio_lttwake_h_sccs = "@(#)lttwake.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -46,8 +46,7 @@ static char *_map_h_sccs_ = "@(#)map.h 1.2";
|
||||
#define TOTAL_MAP_ENTRIES (MAX_MAP_ENTRY*RIO_SLOTS)
|
||||
#define MAX_NAME_LEN 32
|
||||
|
||||
struct Map
|
||||
{
|
||||
struct Map {
|
||||
uint HostUniqueNum; /* Supporting hosts unique number */
|
||||
uint RtaUniqueNum; /* Unique number */
|
||||
/*
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user