Removed un-used code.
This commit is contained in:
parent
b2e8253ac3
commit
2b1f32c2f9
@ -358,18 +358,6 @@ pccard_alloc_intr(int imask, inthand2_t *hand, int unit, int *maskp)
|
||||
int irq;
|
||||
unsigned int mask;
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* this overrides IRQ masks specified by pccardd,
|
||||
* so I removed this code. (hosokawa@mt.cs.keio.ac.jp)
|
||||
*/
|
||||
imask = 1<< 3;
|
||||
imask |= 1<< 5;
|
||||
imask |= 1<< 9;
|
||||
imask |= 1<<11;
|
||||
imask |= 1<<15;
|
||||
#endif
|
||||
|
||||
for (irq = 1; irq < 16; irq++) {
|
||||
mask = 1ul << irq;
|
||||
if (!(mask & imask))
|
||||
|
@ -778,33 +778,21 @@ pcic_reset(void *chan)
|
||||
case 0: /* Something funny happended on the way to the pub... */
|
||||
return;
|
||||
case 1: /* Assert reset */
|
||||
#if 0
|
||||
printf("R");
|
||||
#endif
|
||||
clrb (sp, PCIC_INT_GEN, PCIC_CARDRESET);
|
||||
slotp->insert_seq = 2;
|
||||
timeout(pcic_reset, (void*) slotp, hz/4);
|
||||
return;
|
||||
case 2: /* Deassert it again */
|
||||
#if 0
|
||||
printf("r");
|
||||
#endif
|
||||
setb (sp, PCIC_INT_GEN, PCIC_CARDRESET|PCIC_IOCARD);
|
||||
slotp->insert_seq = 3;
|
||||
timeout(pcic_reset, (void*) slotp, hz/4);
|
||||
return;
|
||||
case 3: /* Wait if card needs more time */
|
||||
if (!getb(sp, PCIC_STATUS) & PCIC_READY) {
|
||||
#if 0
|
||||
printf("_");
|
||||
#endif
|
||||
timeout(pcic_reset, (void*) slotp, hz/10);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
printf(".\n");
|
||||
#endif
|
||||
slotp->insert_seq = 0;
|
||||
if (sp->controller == PCIC_PD672X || sp->controller == PCIC_PD6710) {
|
||||
putb(sp, PCIC_TIME_SETUP0, 0x1);
|
||||
|
Loading…
Reference in New Issue
Block a user