summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-09-06 23:44:25 +0000
committerimp <imp@FreeBSD.org>2006-09-06 23:44:25 +0000
commit443562c9361136ebb76d499cdf93484e86af89c1 (patch)
tree2e077467ef96a921aba05ed82c82656b8e7d5369 /sys/dev/usb/if_axe.c
parent4a25cdf4531b9b1eec541b4aee4e478838742f84 (diff)
downloadFreeBSD-src-443562c9361136ebb76d499cdf93484e86af89c1.zip
FreeBSD-src-443562c9361136ebb76d499cdf93484e86af89c1.tar.gz
s/Static/static/g
s/device_ptr_t/device_t/g No md5 changes in the .o's # Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit # so you need to checkout -kk to get $FreeBSD$ instead of the actual value # of the keyword.
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r--sys/dev/usb/if_axe.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index 1184840..416e4a3 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -110,7 +110,7 @@ __FBSDID("$FreeBSD$");
/*
* Various supported device vendors/products.
*/
-Static struct axe_type axe_devs[] = {
+static struct axe_type axe_devs[] = {
{ USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88172 },
{ USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DUBE100 },
{ USB_VENDOR_JVC, USB_PRODUCT_JVC_MP_PRX1 },
@@ -122,32 +122,32 @@ Static struct axe_type axe_devs[] = {
{ 0, 0 }
};
-Static int axe_match(device_ptr_t);
-Static int axe_attach(device_ptr_t);
-Static int axe_detach(device_ptr_t);
-
-Static int axe_encap(struct axe_softc *, struct mbuf *, int);
-Static void axe_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
-Static void axe_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
-Static void axe_tick(void *);
-Static void axe_tick_task(void *);
-Static void axe_rxstart(struct ifnet *);
-Static void axe_start(struct ifnet *);
-Static int axe_ioctl(struct ifnet *, u_long, caddr_t);
-Static void axe_init(void *);
-Static void axe_stop(struct axe_softc *);
-Static void axe_watchdog(struct ifnet *);
-Static void axe_shutdown(device_ptr_t);
-Static int axe_miibus_readreg(device_ptr_t, int, int);
-Static int axe_miibus_writereg(device_ptr_t, int, int, int);
-Static void axe_miibus_statchg(device_ptr_t);
-Static int axe_cmd(struct axe_softc *, int, int, int, void *);
-Static int axe_ifmedia_upd(struct ifnet *);
-Static void axe_ifmedia_sts(struct ifnet *, struct ifmediareq *);
-
-Static void axe_setmulti(struct axe_softc *);
-
-Static device_method_t axe_methods[] = {
+static int axe_match(device_t);
+static int axe_attach(device_t);
+static int axe_detach(device_t);
+
+static int axe_encap(struct axe_softc *, struct mbuf *, int);
+static void axe_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
+static void axe_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status);
+static void axe_tick(void *);
+static void axe_tick_task(void *);
+static void axe_rxstart(struct ifnet *);
+static void axe_start(struct ifnet *);
+static int axe_ioctl(struct ifnet *, u_long, caddr_t);
+static void axe_init(void *);
+static void axe_stop(struct axe_softc *);
+static void axe_watchdog(struct ifnet *);
+static void axe_shutdown(device_t);
+static int axe_miibus_readreg(device_t, int, int);
+static int axe_miibus_writereg(device_t, int, int, int);
+static void axe_miibus_statchg(device_t);
+static int axe_cmd(struct axe_softc *, int, int, int, void *);
+static int axe_ifmedia_upd(struct ifnet *);
+static void axe_ifmedia_sts(struct ifnet *, struct ifmediareq *);
+
+static void axe_setmulti(struct axe_softc *);
+
+static device_method_t axe_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, axe_match),
DEVMETHOD(device_attach, axe_attach),
@@ -166,20 +166,20 @@ Static device_method_t axe_methods[] = {
{ 0, 0 }
};
-Static driver_t axe_driver = {
+static driver_t axe_driver = {
"axe",
axe_methods,
sizeof(struct axe_softc)
};
-Static devclass_t axe_devclass;
+static devclass_t axe_devclass;
DRIVER_MODULE(axe, uhub, axe_driver, axe_devclass, usbd_driver_load, 0);
DRIVER_MODULE(miibus, axe, miibus_driver, miibus_devclass, 0, 0);
MODULE_DEPEND(axe, usb, 1, 1, 1);
MODULE_DEPEND(axe, miibus, 1, 1, 1);
-Static int
+static int
axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf)
{
usb_device_request_t req;
@@ -206,8 +206,8 @@ axe_cmd(struct axe_softc *sc, int cmd, int index, int val, void *buf)
return(0);
}
-Static int
-axe_miibus_readreg(device_ptr_t dev, int phy, int reg)
+static int
+axe_miibus_readreg(device_t dev, int phy, int reg)
{
struct axe_softc *sc = USBGETSOFTC(dev);
usbd_status err;
@@ -249,8 +249,8 @@ axe_miibus_readreg(device_ptr_t dev, int phy, int reg)
return (val);
}
-Static int
-axe_miibus_writereg(device_ptr_t dev, int phy, int reg, int val)
+static int
+axe_miibus_writereg(device_t dev, int phy, int reg, int val)
{
struct axe_softc *sc = USBGETSOFTC(dev);
usbd_status err;
@@ -273,8 +273,8 @@ axe_miibus_writereg(device_ptr_t dev, int phy, int reg, int val)
return (0);
}
-Static void
-axe_miibus_statchg(device_ptr_t dev)
+static void
+axe_miibus_statchg(device_t dev)
{
#ifdef notdef
struct axe_softc *sc = USBGETSOFTC(dev);
@@ -288,7 +288,7 @@ axe_miibus_statchg(device_ptr_t dev)
/*
* Set media options.
*/
-Static int
+static int
axe_ifmedia_upd(struct ifnet *ifp)
{
struct axe_softc *sc = ifp->if_softc;
@@ -308,7 +308,7 @@ axe_ifmedia_upd(struct ifnet *ifp)
/*
* Report current media status.
*/
-Static void
+static void
axe_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
{
struct axe_softc *sc = ifp->if_softc;
@@ -321,7 +321,7 @@ axe_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
return;
}
-Static void
+static void
axe_setmulti(struct axe_softc *sc)
{
struct ifnet *ifp;
@@ -365,7 +365,7 @@ axe_setmulti(struct axe_softc *sc)
return;
}
-Static void
+static void
axe_reset(struct axe_softc *sc)
{
if (sc->axe_dying)
@@ -549,8 +549,8 @@ USB_ATTACH(axe)
USB_ATTACH_SUCCESS_RETURN;
}
-Static int
-axe_detach(device_ptr_t dev)
+static int
+axe_detach(device_t dev)
{
struct axe_softc *sc;
struct ifnet *ifp;
@@ -586,7 +586,7 @@ axe_detach(device_ptr_t dev)
return(0);
}
-Static void
+static void
axe_rxstart(struct ifnet *ifp)
{
struct axe_softc *sc;
@@ -619,7 +619,7 @@ axe_rxstart(struct ifnet *ifp)
* A frame has been uploaded: pass the resulting mbuf chain up to
* the higher level protocols.
*/
-Static void
+static void
axe_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
{
struct axe_softc *sc;
@@ -685,7 +685,7 @@ done:
* the list buffers.
*/
-Static void
+static void
axe_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
{
struct axe_softc *sc;
@@ -731,7 +731,7 @@ axe_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
return;
}
-Static void
+static void
axe_tick(void *xsc)
{
struct axe_softc *sc = xsc;
@@ -745,7 +745,7 @@ axe_tick(void *xsc)
usb_add_task(sc->axe_udev, &sc->axe_tick_task);
}
-Static void
+static void
axe_tick_task(void *xsc)
{
struct axe_softc *sc;
@@ -784,7 +784,7 @@ axe_tick_task(void *xsc)
return;
}
-Static int
+static int
axe_encap(struct axe_softc *sc, struct mbuf *m, int idx)
{
struct ue_chain *c;
@@ -818,7 +818,7 @@ axe_encap(struct axe_softc *sc, struct mbuf *m, int idx)
return(0);
}
-Static void
+static void
axe_start(struct ifnet *ifp)
{
struct axe_softc *sc;
@@ -867,7 +867,7 @@ axe_start(struct ifnet *ifp)
return;
}
-Static void
+static void
axe_init(void *xsc)
{
struct axe_softc *sc = xsc;
@@ -975,7 +975,7 @@ axe_init(void *xsc)
return;
}
-Static int
+static int
axe_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct axe_softc *sc = ifp->if_softc;
@@ -1048,7 +1048,7 @@ axe_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
return(error);
}
-Static void
+static void
axe_watchdog(struct ifnet *ifp)
{
struct axe_softc *sc;
@@ -1077,7 +1077,7 @@ axe_watchdog(struct ifnet *ifp)
* Stop the adapter and free any mbufs allocated to the
* RX and TX lists.
*/
-Static void
+static void
axe_stop(struct axe_softc *sc)
{
usbd_status err;
@@ -1152,8 +1152,8 @@ axe_stop(struct axe_softc *sc)
* Stop all chip I/O so that the kernel's probe routines don't
* get confused by errant DMAs when rebooting.
*/
-Static void
-axe_shutdown(device_ptr_t dev)
+static void
+axe_shutdown(device_t dev)
{
struct axe_softc *sc;
OpenPOWER on IntegriCloud