From 9c7c2ddd5aa9fb76aee52db283e4e4db3200d2ab Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 16 Jan 2006 17:18:05 +0000 Subject: [PATCH] --- yaml --- r: 18729 b: refs/heads/master c: f099bfb7089735ad1760b3c6938069af10a88cc0 h: refs/heads/master i: 18727: d8b915eee790ca342e03db01d10ba0d42a4b7b24 v: v3 --- [refs] | 2 +- trunk/drivers/char/rio/rioboot.c | 61 -------------------------------- 2 files changed, 1 insertion(+), 62 deletions(-) diff --git a/[refs] b/[refs] index 17942e2a9307..a13c840ec6b4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c7306c02874bf4d22bc0b1dbea34282d0b9a3df1 +refs/heads/master: f099bfb7089735ad1760b3c6938069af10a88cc0 diff --git a/trunk/drivers/char/rio/rioboot.c b/trunk/drivers/char/rio/rioboot.c index 34cbb13aad4b..92df43552f15 100644 --- a/trunk/drivers/char/rio/rioboot.c +++ b/trunk/drivers/char/rio/rioboot.c @@ -665,13 +665,6 @@ struct PKT *PacketP; struct CmdBlk *CmdBlkP; uint sequence; -#ifdef CHECK - CheckHost(Host); - CheckRup(Rup); - CheckHostP(HostP); - CheckPacketP(PacketP); -#endif - /* ** If we haven't been told what to boot, we can't boot it. */ @@ -956,11 +949,6 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st MyType = "RTA"; MyName = HostP->Mapping[Rup].Name; } -#ifdef CHECK - CheckString(MyType); - CheckString(MyName); -#endif - MyLink = RBYTE(PktCmdP->LinkNum); /* @@ -1309,52 +1297,3 @@ struct Host *HostP; } } -#if 0 -/* - Function: This function is to disable the disk interrupt - Returns : Nothing -*/ -void -disable_interrupt(vector) -int vector; -{ - int ps; - int val; - - disable(ps); - if (vector > 40) { - val = 1 << (vector - 40); - __outb(S8259+1, __inb(S8259+1) | val); - } - else { - val = 1 << (vector - 32); - __outb(M8259+1, __inb(M8259+1) | val); - } - restore(ps); -} - -/* - Function: This function is to enable the disk interrupt - Returns : Nothing -*/ -void -enable_interrupt(vector) -int vector; -{ - int ps; - int val; - - disable(ps); - if (vector > 40) { - val = 1 << (vector - 40); - val = ~val; - __outb(S8259+1, __inb(S8259+1) & val); - } - else { - val = 1 << (vector - 32); - val = ~val; - __outb(M8259+1, __inb(M8259+1) & val); - } - restore(ps); -} -#endif