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 */
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_bootpkt_h_sccs = "@(#)bootpkt.h 1.1" ;
|
||||
static char *_rio_bootpkt_h_sccs = "@(#)bootpkt.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -49,14 +49,13 @@ static char *_rio_bootpkt_h_sccs = "@(#)bootpkt.h 1.1" ;
|
||||
* Overlayed onto the Data fields of a regular
|
||||
* Packet
|
||||
************************************************/
|
||||
typedef struct BOOT_PKT BOOT_PKT ;
|
||||
typedef struct BOOT_PKT BOOT_PKT;
|
||||
struct BOOT_PKT {
|
||||
short seq_num ;
|
||||
char data[10] ;
|
||||
} ;
|
||||
short seq_num;
|
||||
char data[10];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -97,9 +97,8 @@
|
||||
|
||||
#define MAX_RATE B2000
|
||||
|
||||
struct baud_rate /* Tag for baud rates */
|
||||
{
|
||||
/* short host_rate,*/ /* As passed by the driver */
|
||||
struct baud_rate { /* Tag for baud rates */
|
||||
/* short host_rate, *//* As passed by the driver */
|
||||
short divisor, /* The divisor */
|
||||
prescaler; /* The pre-scaler */
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_chan_h_sccs = "@(#)chan.h 1.1" ;
|
||||
static char *_rio_chan_h_sccs = "@(#)chan.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
#define ticr 0x45 /* Transmit Interrupting Channel Reg */
|
||||
#define micr 0x46 /* Modem Interrupting Channel Register */
|
||||
|
||||
#define gcr 0x4b /* Global configuration register*/
|
||||
#define gcr 0x4b /* Global configuration register */
|
||||
#define misr 0x4c /* Modem interrupt status register */
|
||||
|
||||
#define rbusr 0x59
|
||||
@@ -162,15 +162,15 @@
|
||||
#define tir 0x6a /* Transmit Interrupt Register */
|
||||
#define rir 0x6b /* Receive Interrupt Register */
|
||||
#define msvr1 0x6c /* Modem Signal Value Register 1 */
|
||||
#define msvr2 0x6d /* Modem Signal Value Register 2*/
|
||||
#define psvr 0x6f /* Printer Signal Value Register*/
|
||||
#define msvr2 0x6d /* Modem Signal Value Register 2 */
|
||||
#define psvr 0x6f /* Printer Signal Value Register */
|
||||
|
||||
#define tbpr 0x72 /* Transmit Baud Rate Period Register */
|
||||
#define tcor 0x76 /* Transmit Clock Option Register */
|
||||
|
||||
#define rbpr 0x78 /* Receive Baud Rate Period Register */
|
||||
#define rber 0x7a /* Receive Baud Rate Extension Register */
|
||||
#define rcor 0x7c /* Receive Clock Option Register*/
|
||||
#define rcor 0x7c /* Receive Clock Option Register */
|
||||
#define ppr 0x7e /* Prescalar Period Register */
|
||||
|
||||
/* Misc registers used for forcing the 1400 out of its reset woes */
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_cmd_h_sccs = "@(#)cmd.h 1.1" ;
|
||||
static char *_rio_cmd_h_sccs = "@(#)cmd.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -81,4 +81,3 @@ static char *_rio_cmd_h_sccs = "@(#)cmd.h 1.1" ;
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -44,15 +44,14 @@ 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 */
|
||||
int (*PreFuncP)(int, struct CmdBlk *);
|
||||
int (*PreFuncP) (int, struct CmdBlk *);
|
||||
int PreArg; /* The arg for the func */
|
||||
/* The func to call when completed */
|
||||
int (*PostFuncP)(int, struct CmdBlk *);
|
||||
int (*PostFuncP) (int, struct CmdBlk *);
|
||||
int PostArg; /* The arg for the func */
|
||||
};
|
||||
|
||||
|
||||
+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;
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_defaults_h_sccs = "@(#)defaults.h 1.1" ;
|
||||
static char *_rio_defaults_h_sccs = "@(#)defaults.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -56,4 +56,3 @@ static char *_rio_defaults_h_sccs = "@(#)defaults.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_enable_h_sccs = "@(#)enable.h 1.1" ;
|
||||
static char *_rio_enable_h_sccs = "@(#)enable.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -46,5 +46,3 @@ static char *_rio_enable_h_sccs = "@(#)enable.h 1.1" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
@@ -80,6 +80,3 @@
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
|
||||
+72
-73
@@ -41,114 +41,113 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS
|
||||
static char *_rio_formpkt_h_sccs = "@(#)formpkt.h 1.1" ;
|
||||
static char *_rio_formpkt_h_sccs = "@(#)formpkt.h 1.1";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1 ;
|
||||
typedef struct FORM_BOOT_PKT_1 FORM_BOOT_PKT_1;
|
||||
struct FORM_BOOT_PKT_1 {
|
||||
ushort pkt_number ;
|
||||
ushort pkt_total ;
|
||||
ushort boot_top ;
|
||||
} ;
|
||||
ushort pkt_number;
|
||||
ushort pkt_total;
|
||||
ushort boot_top;
|
||||
};
|
||||
|
||||
typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2 ;
|
||||
typedef struct FORM_BOOT_PKT_2 FORM_BOOT_PKT_2;
|
||||
struct FORM_BOOT_PKT_2 {
|
||||
ushort pkt_number ;
|
||||
char boot_data[10] ;
|
||||
} ;
|
||||
ushort pkt_number;
|
||||
char boot_data[10];
|
||||
};
|
||||
|
||||
|
||||
typedef struct FORM_ATTACH_RTA FORM_ATTACH_RTA ;
|
||||
typedef struct FORM_ATTACH_RTA FORM_ATTACH_RTA;
|
||||
struct FORM_ATTACH_RTA {
|
||||
char cmd_code ;
|
||||
char booter_serial[4] ;
|
||||
char booter_link ;
|
||||
char bootee_serial[4] ;
|
||||
char bootee_link ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char booter_serial[4];
|
||||
char booter_link;
|
||||
char bootee_serial[4];
|
||||
char bootee_link;
|
||||
};
|
||||
|
||||
|
||||
typedef struct FORM_BOOT_ID FORM_BOOT_ID ;
|
||||
typedef struct FORM_BOOT_ID FORM_BOOT_ID;
|
||||
struct FORM_BOOT_ID {
|
||||
char cmd_code ;
|
||||
char bootee_serial[4] ;
|
||||
char bootee_prod_id ;
|
||||
char bootee_link ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char bootee_serial[4];
|
||||
char bootee_prod_id;
|
||||
char bootee_link;
|
||||
};
|
||||
|
||||
|
||||
|
||||
typedef struct FORM_ROUTE_1 FORM_ROUTE_1 ;
|
||||
typedef struct FORM_ROUTE_1 FORM_ROUTE_1;
|
||||
struct FORM_ROUTE_1 {
|
||||
char cmd_code ;
|
||||
char pkt_number ;
|
||||
char total_in_sequence ;
|
||||
char unit_id ;
|
||||
char host_unit_id ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char pkt_number;
|
||||
char total_in_sequence;
|
||||
char unit_id;
|
||||
char host_unit_id;
|
||||
};
|
||||
|
||||
typedef struct FORM_ROUTE_2 FORM_ROUTE_2 ;
|
||||
typedef struct FORM_ROUTE_2 FORM_ROUTE_2;
|
||||
struct FORM_ROUTE_2 {
|
||||
char cmd_code ;
|
||||
char pkt_number ;
|
||||
char total_in_sequence ;
|
||||
char route_data[9] ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char pkt_number;
|
||||
char total_in_sequence;
|
||||
char route_data[9];
|
||||
};
|
||||
|
||||
typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ ;
|
||||
typedef struct FORM_ROUTE_REQ FORM_ROUTE_REQ;
|
||||
struct FORM_ROUTE_REQ {
|
||||
char cmd_code ;
|
||||
char pkt_number ;
|
||||
char total_in_sequence ;
|
||||
char route_data[10] ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char pkt_number;
|
||||
char total_in_sequence;
|
||||
char route_data[10];
|
||||
};
|
||||
|
||||
|
||||
typedef struct FORM_ERROR FORM_ERROR ;
|
||||
typedef struct FORM_ERROR FORM_ERROR;
|
||||
struct FORM_ERROR {
|
||||
char cmd_code ;
|
||||
char error_code ;
|
||||
char cmd_code;
|
||||
char error_code;
|
||||
|
||||
} ;
|
||||
};
|
||||
|
||||
typedef struct FORM_STATUS FORM_STATUS ;
|
||||
typedef struct FORM_STATUS FORM_STATUS;
|
||||
struct FORM_STATUS {
|
||||
char cmd_code ;
|
||||
char status_code ;
|
||||
char last_packet_valid ;
|
||||
char tx_buffer ;
|
||||
char rx_buffer ;
|
||||
char port_status ;
|
||||
char phb_status ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char status_code;
|
||||
char last_packet_valid;
|
||||
char tx_buffer;
|
||||
char rx_buffer;
|
||||
char port_status;
|
||||
char phb_status;
|
||||
};
|
||||
|
||||
|
||||
typedef struct FORM_LINK_STATUS FORM_LINK_STATUS ;
|
||||
typedef struct FORM_LINK_STATUS FORM_LINK_STATUS;
|
||||
struct FORM_LINK_STATUS {
|
||||
char cmd_code ;
|
||||
char status_code ;
|
||||
char link_number ;
|
||||
ushort rx_errors ;
|
||||
ushort tx_errors ;
|
||||
ushort csum_errors ;
|
||||
ushort disconnects ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char status_code;
|
||||
char link_number;
|
||||
ushort rx_errors;
|
||||
ushort tx_errors;
|
||||
ushort csum_errors;
|
||||
ushort disconnects;
|
||||
};
|
||||
|
||||
|
||||
|
||||
typedef struct FORM_PARTITION FORM_PARTITION ;
|
||||
typedef struct FORM_PARTITION FORM_PARTITION;
|
||||
struct FORM_PARTITION {
|
||||
char cmd_code ;
|
||||
char status_code ;
|
||||
char port_number ;
|
||||
char tx_max ;
|
||||
char rx_max ;
|
||||
char rx_limit ;
|
||||
} ;
|
||||
char cmd_code;
|
||||
char status_code;
|
||||
char port_number;
|
||||
char tx_max;
|
||||
char rx_max;
|
||||
char rx_limit;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
+16
-17
@@ -47,20 +47,19 @@ int RIOBootCodeHOST(struct rio_info *, register struct DownLoad *);
|
||||
int RIOBootCodeUNKNOWN(struct rio_info *, struct DownLoad *);
|
||||
void msec_timeout(struct Host *);
|
||||
int RIOBootRup(struct rio_info *, uint, struct Host *, struct PKT *);
|
||||
int RIOBootOk(struct rio_info *,struct Host *, ulong);
|
||||
int RIOBootOk(struct rio_info *, struct Host *, ulong);
|
||||
int RIORtaBound(struct rio_info *, uint);
|
||||
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);
|
||||
int RIOFoadWakeup(struct rio_info *);
|
||||
struct CmdBlk * RIOGetCmdBlk(void);
|
||||
struct CmdBlk *RIOGetCmdBlk(void);
|
||||
void RIOFreeCmdBlk(struct CmdBlk *);
|
||||
int RIOQueueCmdBlk(struct Host *, uint, struct CmdBlk *);
|
||||
void RIOPollHostCommands(struct rio_info *, struct Host *);
|
||||
@@ -71,13 +70,13 @@ void ShowPacket(uint, struct PKT *);
|
||||
|
||||
/* rioctrl.c */
|
||||
int copyin(int, caddr_t, int);
|
||||
int riocontrol(struct rio_info *, dev_t,int,caddr_t,int);
|
||||
int RIOPreemptiveCmd(struct rio_info *,struct Port *,uchar);
|
||||
int riocontrol(struct rio_info *, dev_t, int, caddr_t, int);
|
||||
int RIOPreemptiveCmd(struct rio_info *, struct Port *, uchar);
|
||||
|
||||
/* rioinit.c */
|
||||
void rioinit(struct rio_info *, struct RioHostInfo *);
|
||||
void RIOInitHosts(struct rio_info *, struct RioHostInfo *);
|
||||
void RIOISAinit(struct rio_info *,int);
|
||||
void RIOISAinit(struct rio_info *, int);
|
||||
int RIODoAT(struct rio_info *, int, int);
|
||||
caddr_t RIOCheckForATCard(int);
|
||||
int RIOAssignAT(struct rio_info *, int, caddr_t, int);
|
||||
@@ -85,7 +84,7 @@ int RIOBoardTest(paddr_t, caddr_t, uchar, int);
|
||||
void RIOAllocDataStructs(struct rio_info *);
|
||||
void RIOSetupDataStructs(struct rio_info *);
|
||||
int RIODefaultName(struct rio_info *, struct Host *, uint);
|
||||
struct rioVersion * RIOVersid(void);
|
||||
struct rioVersion *RIOVersid(void);
|
||||
int RIOMapin(paddr_t, int, caddr_t *);
|
||||
void RIOMapout(paddr_t, long, caddr_t);
|
||||
void RIOHostReset(uint, volatile struct DpRam *, uint);
|
||||
@@ -116,7 +115,7 @@ int RIOFindFreeID(struct rio_info *, struct Host *, uint *, uint *);
|
||||
|
||||
/* riotty.c */
|
||||
|
||||
int riotopen(struct tty_struct * tty, struct file * filp);
|
||||
int riotopen(struct tty_struct *tty, struct file *filp);
|
||||
int riotclose(void *ptr);
|
||||
int riotioctl(struct rio_info *, struct tty_struct *, register int, register caddr_t);
|
||||
void ttyseth(struct Port *, struct ttystatics *, struct old_sgttyb *sg);
|
||||
@@ -127,27 +126,27 @@ int RIOApel(struct rio_info *);
|
||||
int RIODeleteRta(struct rio_info *, struct Map *);
|
||||
int RIOAssignRta(struct rio_info *, struct Map *);
|
||||
int RIOReMapPorts(struct rio_info *, struct Host *, struct Map *);
|
||||
int RIOChangeName(struct rio_info *, struct Map*);
|
||||
int RIOChangeName(struct rio_info *, struct Map *);
|
||||
|
||||
#if 0
|
||||
/* riodrvr.c */
|
||||
struct rio_info * rio_install(struct RioHostInfo *);
|
||||
struct rio_info *rio_install(struct RioHostInfo *);
|
||||
int rio_uninstall(register struct rio_info *);
|
||||
int rio_open(struct rio_info *, int, struct file *);
|
||||
int rio_close(struct rio_info *, struct file *);
|
||||
int rio_read(struct rio_info *, struct file *, char *, int);
|
||||
int rio_write(struct rio_info *, struct file * f, char *, int);
|
||||
int rio_write(struct rio_info *, struct file *f, char *, int);
|
||||
int rio_ioctl(struct rio_info *, struct file *, int, char *);
|
||||
int rio_select(struct rio_info *, struct file * f, int, struct sel *);
|
||||
int rio_select(struct rio_info *, struct file *f, int, struct sel *);
|
||||
int rio_intr(char *);
|
||||
int rio_isr_thread(char *);
|
||||
struct rio_info * rio_info_store( int cmd, struct rio_info * p);
|
||||
struct rio_info *rio_info_store(int cmd, struct rio_info *p);
|
||||
#endif
|
||||
|
||||
extern int rio_pcicopy(char *src, char *dst, int n);
|
||||
extern int rio_minor (struct tty_struct *tty);
|
||||
extern int rio_ismodem (struct tty_struct *tty);
|
||||
extern int rio_minor(struct tty_struct *tty);
|
||||
extern int rio_ismodem(struct tty_struct *tty);
|
||||
|
||||
extern void rio_start_card_running (struct Host * HostP);
|
||||
extern void rio_start_card_running(struct Host *HostP);
|
||||
|
||||
#endif /* __func_h_def */
|
||||
|
||||
@@ -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 */
|
||||
@@ -65,8 +64,8 @@ struct Host
|
||||
/*struct lockb HostLock; *//* Lock structure for MPX */
|
||||
uint WorkToBeDone; /* set to true each interrupt */
|
||||
uint InIntr; /* Being serviced? */
|
||||
uint IntSrvDone;/* host's interrupt has been serviced */
|
||||
int (*Copy)( caddr_t, caddr_t, int ); /* copy func */
|
||||
uint IntSrvDone; /* host's interrupt has been serviced */
|
||||
int (*Copy) (caddr_t, caddr_t, int); /* copy func */
|
||||
struct timer_list timer;
|
||||
/*
|
||||
** I M P O R T A N T !
|
||||
@@ -97,7 +96,7 @@ struct Host
|
||||
struct Map Mapping[MAX_RUP]; /* Mappings for host */
|
||||
struct PHB *PhbP; /* Pointer to the PHB array */
|
||||
ushort *PhbNumP; /* Ptr to Number of PHB's */
|
||||
struct LPB *LinkStrP ; /* Link Structure Array */
|
||||
struct LPB *LinkStrP; /* Link Structure Array */
|
||||
struct RUP *RupP; /* Sixteen real rups here */
|
||||
struct PARM_MAP *ParmMapP; /* points to the parmmap */
|
||||
uint ExtraUnits[MAX_EXTRA_UNITS]; /* unknown things */
|
||||
@@ -107,9 +106,9 @@ struct Host
|
||||
** The first sixteen are the real Rup entries (above), the last four
|
||||
** are the link RUPs.
|
||||
*/
|
||||
struct UnixRup UnixRups[MAX_RUP+LINKS_PER_UNIT];
|
||||
struct UnixRup UnixRups[MAX_RUP + LINKS_PER_UNIT];
|
||||
int timeout_id; /* For calling 100 ms delays */
|
||||
int timeout_sem;/* For calling 100 ms delays */
|
||||
int timeout_sem; /* For calling 100 ms delays */
|
||||
long locks; /* long req'd for set_bit --RR */
|
||||
char ____end_marker____;
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef SCCS_LABELS
|
||||
static char *_rio_hosthw_h_sccs = "@(#)hosthw.h 1.2" ;
|
||||
static char *_rio_hosthw_h_sccs = "@(#)hosthw.h 1.2";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -53,5 +53,3 @@ static char *_rio_hosthw_h_sccs = "@(#)hosthw.h 1.2" ;
|
||||
|
||||
|
||||
/*********** end of file ***********/
|
||||
|
||||
|
||||
|
||||
+34
-34
@@ -119,29 +119,29 @@
|
||||
#endif /* RTA */
|
||||
|
||||
struct LPB {
|
||||
WORD link_number ; /* Link Number */
|
||||
Channel_ptr in_ch ; /* Link In Channel */
|
||||
Channel_ptr out_ch ; /* Link Out Channel */
|
||||
WORD link_number; /* Link Number */
|
||||
Channel_ptr in_ch; /* Link In Channel */
|
||||
Channel_ptr out_ch; /* Link Out Channel */
|
||||
#ifdef RTA
|
||||
uchar stat_led ; /* Port open leds */
|
||||
uchar led ; /* True, light led! */
|
||||
uchar stat_led; /* Port open leds */
|
||||
uchar led; /* True, light led! */
|
||||
#endif
|
||||
BYTE attached_serial[4]; /* Attached serial number */
|
||||
BYTE attached_host_serial[4];
|
||||
/* Serial number of Host who
|
||||
booted the other end */
|
||||
WORD descheduled ; /* Currently Descheduled */
|
||||
WORD descheduled; /* Currently Descheduled */
|
||||
WORD state; /* Current state */
|
||||
WORD send_poll ; /* Send a Poll Packet */
|
||||
Process_ptr ltt_p ; /* Process Descriptor */
|
||||
Process_ptr lrt_p ; /* Process Descriptor */
|
||||
WORD lrt_status ; /* Current lrt status */
|
||||
WORD ltt_status ; /* Current ltt status */
|
||||
WORD timeout ; /* Timeout value */
|
||||
WORD send_poll; /* Send a Poll Packet */
|
||||
Process_ptr ltt_p; /* Process Descriptor */
|
||||
Process_ptr lrt_p; /* Process Descriptor */
|
||||
WORD lrt_status; /* Current lrt status */
|
||||
WORD ltt_status; /* Current ltt status */
|
||||
WORD timeout; /* Timeout value */
|
||||
WORD topology; /* Topology bits */
|
||||
WORD mon_ltt ;
|
||||
WORD mon_lrt ;
|
||||
WORD WaitNoBoot ; /* Secs to hold off booting */
|
||||
WORD mon_ltt;
|
||||
WORD mon_lrt;
|
||||
WORD WaitNoBoot; /* Secs to hold off booting */
|
||||
PKT_ptr add_packet_list; /* Add packets to here */
|
||||
PKT_ptr remove_packet_list; /* Send packets from here */
|
||||
#ifdef RTA
|
||||
@@ -150,38 +150,38 @@ struct LPB {
|
||||
#else
|
||||
#define QBUFS_PER_REDIRECT (8 / PKTS_PER_BUFFER + 1)
|
||||
#endif
|
||||
PKT_ptr_ptr rd_add ; /* Add a new Packet here */
|
||||
PKT_ptr_ptr rd_add; /* Add a new Packet here */
|
||||
Q_BUF_ptr rd_add_qb; /* Pointer to the add Q buf */
|
||||
PKT_ptr_ptr rd_add_st_qbb ; /* Pointer to start of the Q's buf */
|
||||
PKT_ptr_ptr rd_add_end_qbb ; /* Pointer to the end of the Q's buf */
|
||||
PKT_ptr_ptr rd_remove ; /* Remove a Packet here */
|
||||
Q_BUF_ptr rd_remove_qb ; /* Pointer to the remove Q buf */
|
||||
PKT_ptr_ptr rd_remove_st_qbb ; /* Pointer to the start of the Q buf */
|
||||
PKT_ptr_ptr rd_remove_end_qbb ; /* Pointer to the end of the Q buf */
|
||||
ushort pkts_in_q ; /* Packets in queue */
|
||||
PKT_ptr_ptr rd_add_st_qbb; /* Pointer to start of the Q's buf */
|
||||
PKT_ptr_ptr rd_add_end_qbb; /* Pointer to the end of the Q's buf */
|
||||
PKT_ptr_ptr rd_remove; /* Remove a Packet here */
|
||||
Q_BUF_ptr rd_remove_qb; /* Pointer to the remove Q buf */
|
||||
PKT_ptr_ptr rd_remove_st_qbb; /* Pointer to the start of the Q buf */
|
||||
PKT_ptr_ptr rd_remove_end_qbb; /* Pointer to the end of the Q buf */
|
||||
ushort pkts_in_q; /* Packets in queue */
|
||||
#endif
|
||||
|
||||
Channel_ptr lrt_fail_chan ; /* Lrt's failure channel */
|
||||
Channel_ptr ltt_fail_chan ; /* Ltt's failure channel */
|
||||
Channel_ptr lrt_fail_chan; /* Lrt's failure channel */
|
||||
Channel_ptr ltt_fail_chan; /* Ltt's failure channel */
|
||||
|
||||
#if defined (HOST) || defined (INKERNEL)
|
||||
/* RUP structure for HOST to driver communications */
|
||||
struct RUP rup ;
|
||||
struct RUP rup;
|
||||
#endif
|
||||
struct RUP link_rup; /* RUP for the link (POLL,
|
||||
topology etc.) */
|
||||
WORD attached_link ; /* Number of attached link */
|
||||
WORD csum_errors ; /* csum errors */
|
||||
WORD num_disconnects ; /* number of disconnects */
|
||||
WORD num_sync_rcvd ; /* # sync's received */
|
||||
WORD num_sync_rqst ; /* # sync requests */
|
||||
WORD num_tx ; /* Num pkts sent */
|
||||
WORD num_rx ; /* Num pkts received */
|
||||
WORD attached_link; /* Number of attached link */
|
||||
WORD csum_errors; /* csum errors */
|
||||
WORD num_disconnects; /* number of disconnects */
|
||||
WORD num_sync_rcvd; /* # sync's received */
|
||||
WORD num_sync_rqst; /* # sync requests */
|
||||
WORD num_tx; /* Num pkts sent */
|
||||
WORD num_rx; /* Num pkts received */
|
||||
WORD module_attached; /* Module tpyes of attached */
|
||||
WORD led_timeout; /* LED timeout */
|
||||
WORD first_port; /* First port to service */
|
||||
WORD last_port; /* Last port to service */
|
||||
} ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#ifdef SCCS_LABELS
|
||||
#ifndef lint
|
||||
static char *_rio_list_h_sccs = "@(#)list.h 1.9" ;
|
||||
static char *_rio_list_h_sccs = "@(#)list.h 1.9";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user