set pccard insertion beep type in install floppy.
When we use PC-Card as install media, it is a patch to tell with beep about whether we were able to recognize it well. Reviewed by: jkh, imp Tested by: Kenji Yamada <kyamada@ISI.EDU>
This commit is contained in:
parent
06a43ce058
commit
961f1cbb8c
@ -134,6 +134,7 @@ pccardInitialize(void)
|
||||
int t;
|
||||
int i;
|
||||
int pcic_mem = 0xd0000;
|
||||
int beep_newstat;
|
||||
char card_device[16];
|
||||
char *card_irq = "";
|
||||
char temp[256];
|
||||
@ -222,6 +223,14 @@ pccardInitialize(void)
|
||||
restorescr(w);
|
||||
return;
|
||||
}
|
||||
beep_newstat = 1;
|
||||
if (ioctl(fd, PIOCSBEEP, &beep_newstat) < 0) {
|
||||
msgNotify("Warning: unable to set pccard insertion beep type for %s",
|
||||
card_device);
|
||||
restorescr(w);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
strcpy(pccardd_cmd, "/stand/pccardd ");
|
||||
|
@ -134,6 +134,7 @@ pccardInitialize(void)
|
||||
int t;
|
||||
int i;
|
||||
int pcic_mem = 0xd0000;
|
||||
int beep_newstat;
|
||||
char card_device[16];
|
||||
char *card_irq = "";
|
||||
char temp[256];
|
||||
@ -222,6 +223,14 @@ pccardInitialize(void)
|
||||
restorescr(w);
|
||||
return;
|
||||
}
|
||||
beep_newstat = 1;
|
||||
if (ioctl(fd, PIOCSBEEP, &beep_newstat) < 0) {
|
||||
msgNotify("Warning: unable to set pccard insertion beep type for %s",
|
||||
card_device);
|
||||
restorescr(w);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
strcpy(pccardd_cmd, "/stand/pccardd ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user