Use ioctl_command_t.

This commit is contained in:
Ralf Corsepius
2006-12-15 05:48:07 +00:00
parent 9994f298a0
commit 7a5265ff5d
3 changed files with 6 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ void mc9328mxl_enet_sendpacket (struct ifnet *ifp, struct mbuf *m);
void mc9328mxl_enet_rx_task(void *arg); void mc9328mxl_enet_rx_task(void *arg);
void mc9328mxl_enet_stats(mc9328mxl_enet_softc_t *sc); void mc9328mxl_enet_stats(mc9328mxl_enet_softc_t *sc);
static int mc9328mxl_enet_ioctl(struct ifnet *ifp, static int mc9328mxl_enet_ioctl(struct ifnet *ifp,
unsigned long command, caddr_t data); ioctl_command_t command, caddr_t data);
int rtems_mc9328mxl_enet_attach ( int rtems_mc9328mxl_enet_attach (
@@ -632,7 +632,7 @@ static int enet_isr_is_on(const rtems_irq_connect_data *irq)
/* Driver ioctl handler */ /* Driver ioctl handler */
static int static int
mc9328mxl_enet_ioctl (struct ifnet *ifp, unsigned long command, caddr_t data) mc9328mxl_enet_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_t data)
{ {
mc9328mxl_enet_softc_t *sc = ifp->if_softc; mc9328mxl_enet_softc_t *sc = ifp->if_softc;
int error = 0; int error = 0;

View File

@@ -167,7 +167,7 @@ void at91rm9200_emac_sendpacket (struct ifnet *ifp, struct mbuf *m);
void at91rm9200_emac_rxDaemon(void *arg); void at91rm9200_emac_rxDaemon(void *arg);
void at91rm9200_emac_stats (at91rm9200_emac_softc_t *sc); void at91rm9200_emac_stats (at91rm9200_emac_softc_t *sc);
static int at91rm9200_emac_ioctl (struct ifnet *ifp, static int at91rm9200_emac_ioctl (struct ifnet *ifp,
int command, ioctl_command_t command,
caddr_t data); caddr_t data);
@@ -622,7 +622,7 @@ static int at91rm9200_emac_isr_is_on(const rtems_irq_connect_data *irq)
/* Driver ioctl handler */ /* Driver ioctl handler */
static int static int
at91rm9200_emac_ioctl (struct ifnet *ifp, int command, caddr_t data) at91rm9200_emac_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_t data)
{ {
at91rm9200_emac_softc_t *sc = ifp->if_softc; at91rm9200_emac_softc_t *sc = ifp->if_softc;
int error = 0; int error = 0;

View File

@@ -111,7 +111,7 @@ void uti596_init (void * );
int uti596initRxBufs (int num); int uti596initRxBufs (int num);
int uti596_initRFA (int num); int uti596_initRFA (int num);
int uti596initRxBufs (int num); int uti596initRxBufs (int num);
static int uti596_ioctl (struct ifnet *, u_long, caddr_t); static int uti596_ioctl (struct ifnet *, ioctl_command_t, caddr_t);
rtems_isr uti596DynamicInterruptHandler (rtems_vector_number); rtems_isr uti596DynamicInterruptHandler (rtems_vector_number);
void uti596_txDaemon (void *); void uti596_txDaemon (void *);
@@ -2462,7 +2462,7 @@ void uti596_stop(struct uti596_softc *sc)
} }
static int static int
uti596_ioctl (struct ifnet *ifp, u_long command, caddr_t data) uti596_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_t data)
{ {
struct uti596_softc *sc = ifp->if_softc; struct uti596_softc *sc = ifp->if_softc;
int error = 0; int error = 0;