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:
MIHIRA Sanpei Yoshiro 2000-08-29 00:42:31 +00:00
parent 06a43ce058
commit 961f1cbb8c
2 changed files with 18 additions and 0 deletions

View File

@ -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 ");

View File

@ -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 ");