mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
The ncv_card_intr function is only used in older versions of FreeBSD, so
move its prototype and definition inside the appropriate #ifdef's.
This commit is contained in:
parent
5d3e8edac4
commit
32c98125c9
1 changed files with 9 additions and 9 deletions
|
|
@ -91,10 +91,10 @@ extern struct ncv_softc *ncvdata[];
|
|||
static int ncvprobe(DEVPORT_PDEVICE devi);
|
||||
static int ncvattach(DEVPORT_PDEVICE devi);
|
||||
|
||||
static int ncv_card_intr __P((DEVPORT_PDEVICE));
|
||||
static void ncv_card_unload __P((DEVPORT_PDEVICE));
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version < 400001
|
||||
static int ncv_card_init __P((DEVPORT_PDEVICE));
|
||||
static int ncv_card_intr __P((DEVPORT_PDEVICE));
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version >= 400001
|
||||
|
|
@ -303,6 +303,14 @@ ncv_card_init(DEVPORT_PDEVICE devi)
|
|||
return (ENXIO);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
ncv_card_intr(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
|
||||
ncvintr(DEVPORT_PDEVGET_SOFTC(devi));
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
|
|
@ -315,14 +323,6 @@ ncv_card_unload(DEVPORT_PDEVICE devi)
|
|||
scsi_low_dettach(&sc->sc_sclow);
|
||||
}
|
||||
|
||||
static int
|
||||
ncv_card_intr(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
|
||||
ncvintr(DEVPORT_PDEVGET_SOFTC(devi));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
ncvprobe(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue