b5137699ae
floating before). Attach pccard devices to pcic, one per slot (although this may change to one per pcic). pcic is now attached to isa (to act as a bridge) and pccard is attached to pcic, cbb and pc98ic (the last two are card bus bridge and the pc98ic version of pcic, neither of which are in the tree yet). Move pccard compat code into pccard/pccard_compat.c. THIS REQUIRES A CONFIG FILE CHANGE. You must change your pcic/card entries to be: # PCCARD (PCMCIA) support controller pcic0 at isa? controller pcic1 at isa? controller card0 The old system was upside down and this corrects that problem. It will make it easier to add support for YENTA pccard/card bus bridges. Much more cleanup needs to happen before newbus devices can have pccard attachments. My previous commit's comments were premature.
30 lines
776 B
C
30 lines
776 B
C
/*-
|
|
* pccard driver interface.
|
|
* Bruce Evans, November 1995.
|
|
* This file is in the public domain.
|
|
*
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
#ifndef _PCCARD_DRIVER_H_
|
|
#define _PCCARD_DRIVER_H_
|
|
|
|
struct pccard_device;
|
|
|
|
void pccard_add_driver __P((struct pccard_device *));
|
|
#ifdef _I386_ISA_ISA_DEVICE_H_ /* XXX actually if ointhand2_t is declared */
|
|
int pccard_alloc_intr __P((u_int imask, ointhand2_t *hand, int unit,
|
|
u_int *maskp, u_int *pcic_imask));
|
|
#endif
|
|
void pccard_remove_driver __P((struct pccard_device *));
|
|
|
|
enum beepstate { BEEP_ON, BEEP_OFF };
|
|
|
|
void pccard_insert_beep __P((void));
|
|
void pccard_remove_beep __P((void));
|
|
void pccard_success_beep __P((void));
|
|
void pccard_failure_beep __P((void));
|
|
int pccard_beep_select __P((enum beepstate));
|
|
|
|
#endif /* !_PCCARD_DRIVER_H_ */
|