Add a field to struct cmn_unit to hold a pointer to the driver's softc.
This commit is contained in:
parent
91c590034d
commit
f72e17e233
@ -499,5 +499,6 @@ typedef struct eni_unit Eni_unit;
|
||||
#define eu_closevcc eu_cmn.cu_closevcc
|
||||
#define eu_output eu_cmn.cu_output
|
||||
#define eu_config eu_cmn.cu_config
|
||||
#define eu_softc eu_cmn.cu_softc
|
||||
|
||||
#endif /* _ENI_ENI_H */
|
||||
|
@ -184,6 +184,7 @@ hea_attach (device_t dev)
|
||||
eup->eu_output = eni_output;
|
||||
|
||||
eup->eu_pcitag = dev;
|
||||
eup->eu_softc = (void *)sc;
|
||||
|
||||
/*
|
||||
* Map memory structures into adapter space
|
||||
|
@ -245,6 +245,7 @@ typedef struct fore_unit Fore_unit;
|
||||
#define fu_closevcc fu_cmn.cu_closevcc
|
||||
#define fu_output fu_cmn.cu_output
|
||||
#define fu_config fu_cmn.cu_config
|
||||
#define fu_softc fu_cmn.cu_softc
|
||||
|
||||
/*
|
||||
* Device flags (in addition to CUF_* flags)
|
||||
|
@ -176,6 +176,7 @@ hfa_attach (device_t dev)
|
||||
fup->fu_openvcc = fore_openvcc;
|
||||
fup->fu_closevcc = fore_closevcc;
|
||||
fup->fu_output = fore_output;
|
||||
fup->fu_softc = (void *)sc;
|
||||
|
||||
callout_handle_init(&fup->fu_thandle);
|
||||
|
||||
|
@ -109,6 +109,7 @@
|
||||
#define iu_closevcc iu_cmn.cu_closevcc
|
||||
#define iu_output iu_cmn.cu_output
|
||||
#define iu_config iu_cmn.cu_config
|
||||
#define iu_softc iu_cmn.cu_softc
|
||||
|
||||
/*
|
||||
* ATM Interface services
|
||||
@ -313,6 +314,7 @@ idt_harp_init(nicstar_reg_t *idt)
|
||||
idt->iu_output = idt_output;
|
||||
idt->iu_vcc_zone = idt_vcc_zone;
|
||||
idt->iu_nif_zone = idt_nif_zone;
|
||||
idt->iu_softc = (void *)idt;
|
||||
|
||||
/*
|
||||
* Copy serial number into config space
|
||||
|
@ -279,6 +279,8 @@ struct cmn_unit {
|
||||
(struct cmn_unit *, Cmn_vcc *, KBuffer *);
|
||||
|
||||
Atm_config cu_config; /* Device configuration data */
|
||||
|
||||
void * cu_softc; /* pointer to driver state */
|
||||
};
|
||||
typedef struct cmn_unit Cmn_unit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user