X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Frio%2Frioinit.c;h=dca941ed10cfb7e007ae7119b2d4330d086e9a16;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=5712bdef20f83be8acc09bf57b06a73e9e4a5599;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/char/rio/rioinit.c b/drivers/char/rio/rioinit.c index 5712bdef2..dca941ed1 100644 --- a/drivers/char/rio/rioinit.c +++ b/drivers/char/rio/rioinit.c @@ -84,9 +84,15 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c 1.3"; #undef bcopy #define bcopy rio_pcicopy -int -RIOPCIinit(struct rio_info *p, int Mode); +int RIOPCIinit(struct rio_info *p, int Mode); + +#if 0 +static void RIOAllocateInterrupts(struct rio_info *); +static int RIOReport(struct rio_info *); +static void RIOStopInterrupts(struct rio_info *, int, int); +#endif +static int RIOScrub(int, BYTE *, int); #if 0 extern int rio_intr(); @@ -1116,7 +1122,7 @@ int slot; ** Call with op not zero, and the RAM will be read and compated with val[op-1] ** to check that the data from the previous phase was retained. */ -int +static int RIOScrub(op, ram, size) int op; BYTE * ram; @@ -1262,7 +1268,8 @@ int size; ** and force into polled mode if told to. Patch up the ** interrupt vector & salute The Queen when you've done. */ -void +#if 0 +static void RIOAllocateInterrupts(p) struct rio_info * p; { @@ -1301,7 +1308,7 @@ struct rio_info * p; ** new-fangled interrupt thingies. Set everything up to just ** poll. */ -void +static void RIOStopInterrupts(p, Reason, Host) struct rio_info * p; int Reason; @@ -1360,7 +1367,6 @@ int Host; } } -#if 0 /* ** This function is called at init time to setup the data structures. */ @@ -1444,7 +1450,7 @@ struct rio_info * p; } RIODefaultName(p, HostP, rup); } - HostP->UnixRups[rup].RupLock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&HostP->UnixRups[rup].RupLock); } } } @@ -1476,7 +1482,8 @@ uint UnitId; #define RIO_RELEASE "Linux" #define RELEASE_ID "1.0" -int +#if 0 +static int RIOReport(p) struct rio_info * p; { @@ -1500,41 +1507,7 @@ struct rio_info * p; } return 0; } - -/* -** This function returns release/version information as used by ioctl() calls -** It returns a MAX_VERSION_LEN byte string, null terminated. -*/ -char * -OLD_RIOVersid( void ) -{ - static char Info[MAX_VERSION_LEN]; - char * RIORelease = RIO_RELEASE; - char * cp; - int ct = 0; - - for ( ct=0; RIORelease[ct] && ct=MAX_VERSION_LEN ) { - Info[MAX_VERSION_LEN-1] = '\0'; - return Info; - } - Info[ct++]=' '; - if ( ct>=MAX_VERSION_LEN ) { - Info[MAX_VERSION_LEN-1] = '\0'; - return Info; - } - - cp=""; /* Fill the RCS Id here */ - - while ( *cp && ct