-/* $OpenBSD: aic_pcmcia.c,v 1.17 2015/03/14 03:38:49 jsg Exp $ */
+/* $OpenBSD: aic_pcmcia.c,v 1.18 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: aic_pcmcia.c,v 1.6 1998/07/19 17:28:15 christos Exp $ */
/*
};
int
-aic_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+aic_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
int i;
}
void
-aic_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+aic_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct aic_pcmcia_softc *psc = (void *)self;
struct aic_softc *sc = &psc->sc_aic;
}
int
-aic_pcmcia_detach(self, flags)
- struct device *self;
- int flags;
+aic_pcmcia_detach(struct device *self, int flags)
{
struct aic_pcmcia_softc *sc= (void *)self;
int error;
-/* $OpenBSD: com_pcmcia.c,v 1.57 2017/12/30 20:46:59 guenther Exp $ */
+/* $OpenBSD: com_pcmcia.c,v 1.58 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: com_pcmcia.c,v 1.15 1998/08/22 17:47:58 msaitoh Exp $ */
/*
};
int
-com_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+com_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
struct pcmcia_config_entry *cfe;
}
int
-com_pcmcia_activate(dev, act)
- struct device *dev;
- int act;
+com_pcmcia_activate(struct device *dev, int act)
{
struct com_pcmcia_softc *sc = (void *) dev;
}
void
-com_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+com_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct com_pcmcia_softc *psc = (void *) self;
struct com_softc *sc = &psc->sc_com;
}
int
-com_pcmcia_detach(dev, flags)
- struct device *dev;
- int flags;
+com_pcmcia_detach(struct device *dev, int flags)
{
struct com_pcmcia_softc *psc = (struct com_pcmcia_softc *)dev;
int error;
}
int
-com_pcmcia_enable(sc)
- struct com_softc *sc;
+com_pcmcia_enable(struct com_softc *sc)
{
struct com_pcmcia_softc *psc = (struct com_pcmcia_softc *) sc;
struct pcmcia_function *pf = psc->sc_pf;
}
int
-com_pcmcia_enable1(sc)
- struct com_softc *sc;
+com_pcmcia_enable1(struct com_softc *sc)
{
struct com_pcmcia_softc *psc = (struct com_pcmcia_softc *) sc;
struct pcmcia_function *pf = psc->sc_pf;
}
void
-com_pcmcia_disable(sc)
- struct com_softc *sc;
+com_pcmcia_disable(struct com_softc *sc)
{
struct com_pcmcia_softc *psc = (struct com_pcmcia_softc *) sc;
}
void
-com_pcmcia_disable1(sc)
- struct com_softc *sc;
+com_pcmcia_disable1(struct com_softc *sc)
{
struct com_pcmcia_softc *psc = (struct com_pcmcia_softc *) sc;
-/* $OpenBSD: if_ep_pcmcia.c,v 1.48 2015/11/25 11:20:38 mpi Exp $ */
+/* $OpenBSD: if_ep_pcmcia.c,v 1.49 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: if_ep_pcmcia.c,v 1.16 1998/08/17 23:20:40 thorpej Exp $ */
/*-
struct ep_pcmcia_product *ep_pcmcia_lookup(struct pcmcia_attach_args *);
struct ep_pcmcia_product *
-ep_pcmcia_lookup(pa)
- struct pcmcia_attach_args *pa;
+ep_pcmcia_lookup(struct pcmcia_attach_args *pa)
{
int i;
}
int
-ep_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+ep_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
#ifdef notdef
int
-ep_pcmcia_enable(sc)
- struct ep_softc *sc;
+ep_pcmcia_enable(struct ep_softc *sc)
{
struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc;
struct pcmcia_function *pf = psc->sc_pf;
#endif
int
-ep_pcmcia_enable1(sc)
- struct ep_softc *sc;
+ep_pcmcia_enable1(struct ep_softc *sc)
{
struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc;
struct pcmcia_function *pf = psc->sc_pf;
#ifdef notyet
void
-ep_pcmcia_disable(sc)
- struct ep_softc *sc;
+ep_pcmcia_disable(struct ep_softc *sc)
{
struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc;
}
void
-ep_pcmcia_disable1(sc)
- struct ep_softc *sc;
+ep_pcmcia_disable1(struct ep_softc *sc)
{
struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc;
#endif
void
-ep_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+ep_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct ep_pcmcia_softc *psc = (void *) self;
struct ep_softc *sc = &psc->sc_ep;
}
int
-ep_pcmcia_detach(dev, flags)
- struct device *dev;
- int flags;
+ep_pcmcia_detach(struct device *dev, int flags)
{
int rv;
struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *)dev;
}
int
-ep_pcmcia_activate(dev, act)
- struct device *dev;
- int act;
+ep_pcmcia_activate(struct device *dev, int act)
{
struct ep_pcmcia_softc *sc = (struct ep_pcmcia_softc *)dev;
struct ep_softc *esc = &sc->sc_ep;
}
int
-ep_pcmcia_get_enaddr(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+ep_pcmcia_get_enaddr(struct pcmcia_tuple *tuple, void *arg)
{
u_int8_t *myla = arg;
int i;
-/* $OpenBSD: if_ne_pcmcia.c,v 1.99 2015/11/24 13:33:18 mpi Exp $ */
+/* $OpenBSD: if_ne_pcmcia.c,v 1.100 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: if_ne_pcmcia.c,v 1.17 1998/08/15 19:00:04 thorpej Exp $ */
/*
&ne2000devs[(n)]:NULL)
int
-ne_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+ne_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
int i;
}
void
-ne_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+ne_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct ne_pcmcia_softc *psc = (void *) self;
struct ne2000_softc *nsc = &psc->sc_ne2000;
}
int
-ne_pcmcia_detach(dev, flags)
- struct device *dev;
- int flags;
+ne_pcmcia_detach(struct device *dev, int flags)
{
struct ne_pcmcia_softc *psc = (struct ne_pcmcia_softc *)dev;
int error;
}
int
-ne_pcmcia_activate(dev, act)
- struct device *dev;
- int act;
+ne_pcmcia_activate(struct device *dev, int act)
{
struct ne_pcmcia_softc *sc = (struct ne_pcmcia_softc *)dev;
struct dp8390_softc *esc = &sc->sc_ne2000.sc_dp8390;
#ifdef notyet
int
-ne_pcmcia_enable(dsc)
- struct dp8390_softc *dsc;
+ne_pcmcia_enable(struct dp8390_softc *dsc)
{
struct ne_pcmcia_softc *psc = (struct ne_pcmcia_softc *)dsc;
}
void
-ne_pcmcia_disable(dsc)
- struct dp8390_softc *dsc;
+ne_pcmcia_disable(struct dp8390_softc *dsc)
{
struct ne_pcmcia_softc *psc = (struct ne_pcmcia_softc *)dsc;
#endif
u_int8_t *
-ne_pcmcia_get_enaddr(psc, maddr, myea)
- struct ne_pcmcia_softc *psc;
- int maddr;
- u_int8_t myea[ETHER_ADDR_LEN];
+ne_pcmcia_get_enaddr(struct ne_pcmcia_softc *psc, int maddr,
+ u_int8_t myea[ETHER_ADDR_LEN])
{
struct ne2000_softc *nsc = &psc->sc_ne2000;
struct dp8390_softc *dsc = &nsc->sc_dp8390;
}
u_int8_t *
-ne_pcmcia_dl10019_get_enaddr(psc, myea)
- struct ne_pcmcia_softc *psc;
- u_int8_t myea[ETHER_ADDR_LEN];
+ne_pcmcia_dl10019_get_enaddr(struct ne_pcmcia_softc *psc,
+ u_int8_t myea[ETHER_ADDR_LEN])
{
struct ne2000_softc *nsc = &psc->sc_ne2000;
u_int8_t sum;
}
int
-ne_pcmcia_ax88190_set_iobase(psc)
- struct ne_pcmcia_softc *psc;
+ne_pcmcia_ax88190_set_iobase(struct ne_pcmcia_softc *psc)
{
struct ne2000_softc *nsc = &psc->sc_ne2000;
struct dp8390_softc *dsc = &nsc->sc_dp8390;
-/* $OpenBSD: if_sm_pcmcia.c,v 1.37 2015/11/24 17:11:40 mpi Exp $ */
+/* $OpenBSD: if_sm_pcmcia.c,v 1.38 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: if_sm_pcmcia.c,v 1.11 1998/08/15 20:47:32 thorpej Exp $ */
/*-
};
int
-sm_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+sm_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
int i;
}
void
-sm_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+sm_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct sm_pcmcia_softc *psc = (struct sm_pcmcia_softc *)self;
struct smc91cxx_softc *sc = &psc->sc_smc;
}
int
-sm_pcmcia_detach(dev, flags)
- struct device *dev;
- int flags;
+sm_pcmcia_detach(struct device *dev, int flags)
{
struct sm_pcmcia_softc *psc = (struct sm_pcmcia_softc *)dev;
struct ifnet *ifp = &psc->sc_smc.sc_arpcom.ac_if;
}
int
-sm_pcmcia_activate(dev, act)
- struct device *dev;
- int act;
+sm_pcmcia_activate(struct device *dev, int act)
{
struct sm_pcmcia_softc *sc = (struct sm_pcmcia_softc *)dev;
struct ifnet *ifp = &sc->sc_smc.sc_arpcom.ac_if;
}
int
-sm_pcmcia_ascii_enaddr(cisstr, myla)
- const char *cisstr;
- u_int8_t *myla;
+sm_pcmcia_ascii_enaddr(const char *cisstr, u_int8_t *myla)
{
char enaddr_str[12];
int i, j;
}
int
-sm_pcmcia_funce_enaddr(parent, myla)
- struct device *parent;
- u_int8_t *myla;
+sm_pcmcia_funce_enaddr(struct device *parent, u_int8_t *myla)
{
return (pcmcia_scan_cis(parent, sm_pcmcia_lannid_ciscallback, myla));
}
int
-sm_pcmcia_lannid_ciscallback(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+sm_pcmcia_lannid_ciscallback(struct pcmcia_tuple *tuple, void *arg)
{
u_int8_t *myla = arg;
int i;
}
int
-sm_pcmcia_enable(sc)
- struct smc91cxx_softc *sc;
+sm_pcmcia_enable(struct smc91cxx_softc *sc)
{
struct sm_pcmcia_softc *psc = (struct sm_pcmcia_softc *)sc;
}
void
-sm_pcmcia_disable(sc)
- struct smc91cxx_softc *sc;
+sm_pcmcia_disable(struct smc91cxx_softc *sc)
{
struct sm_pcmcia_softc *psc = (struct sm_pcmcia_softc *)sc;
-/* $OpenBSD: if_xe.c,v 1.60 2020/07/10 13:26:40 patrick Exp $ */
+/* $OpenBSD: if_xe.c,v 1.61 2021/03/07 06:20:09 jsg Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist, Brandon Creighton, Job de Haas
#endif /* XEDEBUG */
int
-xe_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+xe_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
}
void
-xe_pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+xe_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct xe_pcmcia_softc *psc = (struct xe_pcmcia_softc *)self;
struct xe_softc *sc = &psc->sc_xe;
}
int
-xe_pcmcia_detach(dev, flags)
- struct device *dev;
- int flags;
+xe_pcmcia_detach(struct device *dev, int flags)
{
struct xe_pcmcia_softc *psc = (struct xe_pcmcia_softc *)dev;
struct xe_softc *sc = &psc->sc_xe;
}
int
-xe_pcmcia_activate(dev, act)
- struct device *dev;
- int act;
+xe_pcmcia_activate(struct device *dev, int act)
{
struct xe_pcmcia_softc *sc = (struct xe_pcmcia_softc *)dev;
struct ifnet *ifp = &sc->sc_xe.sc_arpcom.ac_if;
* if_sm_pcmcia.c uses similar ones.
*/
int
-xe_pcmcia_funce_enaddr(parent, myla)
- struct device *parent;
- u_int8_t *myla;
+xe_pcmcia_funce_enaddr(struct device *parent, u_int8_t *myla)
{
/* XXX The Linux driver has more ways to do this in case of failure. */
return (pcmcia_scan_cis(parent, xe_pcmcia_lan_nid_ciscallback, myla));
}
int
-xe_pcmcia_lan_nid_ciscallback(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+xe_pcmcia_lan_nid_ciscallback(struct pcmcia_tuple *tuple, void *arg)
{
u_int8_t *myla = arg;
int i;
}
u_int32_t
-xe_pcmcia_interpret_manfid (parent)
- struct device *parent;
+xe_pcmcia_interpret_manfid(struct device *parent)
{
u_int32_t flags = 0;
struct pcmcia_softc *psc = (struct pcmcia_softc *)parent;
}
int
-xe_pcmcia_manfid_ciscallback(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+xe_pcmcia_manfid_ciscallback(struct pcmcia_tuple *tuple, void *arg)
{
u_int32_t *flagsp = arg;
u_int8_t media, product;
}
int
-xe_intr(arg)
- void *arg;
+xe_intr(void *arg)
{
struct xe_softc *sc = arg;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
}
u_int16_t
-xe_get(sc)
- struct xe_softc *sc;
+xe_get(struct xe_softc *sc)
{
u_int8_t rsr;
struct mbuf *top, **mp, *m;
/* Let the MII serial management be idle for one period. */
static INLINE void xe_mdi_idle(struct xe_softc *);
static INLINE void
-xe_mdi_idle(sc)
- struct xe_softc *sc;
+xe_mdi_idle(struct xe_softc *sc)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
/* Pulse out one bit of data. */
static INLINE void xe_mdi_pulse(struct xe_softc *, int);
static INLINE void
-xe_mdi_pulse(sc, data)
- struct xe_softc *sc;
- int data;
+xe_mdi_pulse(struct xe_softc *sc, int data)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
/* Probe one bit of data. */
static INLINE int xe_mdi_probe(struct xe_softc *sc);
static INLINE int
-xe_mdi_probe(sc)
- struct xe_softc *sc;
+xe_mdi_probe(struct xe_softc *sc)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
/* Pulse out a sequence of data bits. */
static INLINE void xe_mdi_pulse_bits(struct xe_softc *, u_int32_t, int);
static INLINE void
-xe_mdi_pulse_bits(sc, data, len)
- struct xe_softc *sc;
- u_int32_t data;
- int len;
+xe_mdi_pulse_bits(struct xe_softc *sc, u_int32_t data, int len)
{
u_int32_t mask;
/* Read a PHY register. */
int
-xe_mdi_read(self, phy, reg)
- struct device *self;
- int phy;
- int reg;
+xe_mdi_read(struct device *self, int phy, int reg)
{
struct xe_softc *sc = (struct xe_softc *)self;
int i;
/* Write a PHY register. */
void
-xe_mdi_write(self, phy, reg, value)
- struct device *self;
- int phy;
- int reg;
- int value;
+xe_mdi_write(struct device *self, int phy, int reg, int value)
{
struct xe_softc *sc = (struct xe_softc *)self;
int i;
}
void
-xe_statchg(self)
- struct device *self;
+xe_statchg(struct device *self)
{
}
* Change media according to request.
*/
int
-xe_mediachange(ifp)
- struct ifnet *ifp;
+xe_mediachange(struct ifnet *ifp)
{
if (ifp->if_flags & IFF_UP)
xe_init(ifp->if_softc);
* Notify the world which media we're using.
*/
void
-xe_mediastatus(ifp, ifmr)
- struct ifnet *ifp;
- struct ifmediareq *ifmr;
+xe_mediastatus(struct ifnet *ifp, struct ifmediareq *ifmr)
{
struct xe_softc *sc = ifp->if_softc;
}
void
-xe_reset(sc)
- struct xe_softc *sc;
+xe_reset(struct xe_softc *sc)
{
int s;
}
void
-xe_watchdog(ifp)
- struct ifnet *ifp;
+xe_watchdog(struct ifnet *ifp)
{
struct xe_softc *sc = ifp->if_softc;
}
void
-xe_stop(sc)
- register struct xe_softc *sc;
+xe_stop(struct xe_softc *sc)
{
/* Disable interrupts. */
PAGE(sc, 0);
}
void
-xe_init(sc)
- struct xe_softc *sc;
+xe_init(struct xe_softc *sc)
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
int s;
* Always called as splnet().
*/
void
-xe_start(ifp)
- struct ifnet *ifp;
+xe_start(struct ifnet *ifp)
{
struct xe_softc *sc = ifp->if_softc;
bus_space_tag_t bst = sc->sc_bst;
}
int
-xe_ioctl(ifp, command, data)
- struct ifnet *ifp;
- u_long command;
- caddr_t data;
+xe_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct xe_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
}
void
-xe_set_address(sc)
- struct xe_softc *sc;
+xe_set_address(struct xe_softc *sc)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
}
void
-xe_cycle_power(sc)
- struct xe_softc *sc;
+xe_cycle_power(struct xe_softc *sc)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
}
void
-xe_full_reset(sc)
- struct xe_softc *sc;
+xe_full_reset(struct xe_softc *sc)
{
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
#ifdef XEDEBUG
void
-xe_reg_dump(sc)
- struct xe_softc *sc;
+xe_reg_dump(struct xe_softc *sc)
{
int page, i;
bus_space_tag_t bst = sc->sc_bst;
-/* $OpenBSD: pcmcia.c,v 1.48 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: pcmcia.c,v 1.49 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: pcmcia.c,v 1.9 1998/08/13 02:10:55 eeh Exp $ */
/*
};
int
-pcmcia_ccr_read(pf, ccr)
- struct pcmcia_function *pf;
- int ccr;
+pcmcia_ccr_read(struct pcmcia_function *pf, int ccr)
{
return (bus_space_read_1(pf->pf_ccrt, pf->pf_ccrh,
}
void
-pcmcia_ccr_write(pf, ccr, val)
- struct pcmcia_function *pf;
- int ccr;
- int val;
+pcmcia_ccr_write(struct pcmcia_function *pf, int ccr, int val)
{
if ((pf->ccr_mask) & (1 << (ccr / 2))) {
}
int
-pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+pcmcia_match(struct device *parent, void *match, void *aux)
{
struct cfdata *cf = match;
struct pcmciabus_attach_args *paa = aux;
}
void
-pcmcia_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct pcmciabus_attach_args *paa = aux;
struct pcmcia_softc *sc = (struct pcmcia_softc *) self;
}
int
-pcmcia_card_attach(dev)
- struct device *dev;
+pcmcia_card_attach(struct device *dev)
{
struct pcmcia_softc *sc = (struct pcmcia_softc *) dev;
struct pcmcia_function *pf;
}
void
-pcmcia_card_detach(dev, flags)
- struct device *dev;
- int flags; /* DETACH_* flags */
+pcmcia_card_detach(struct device *dev, int flags)
{
struct pcmcia_softc *sc = (struct pcmcia_softc *) dev;
struct pcmcia_function *pf;
}
void
-pcmcia_card_deactivate(dev)
- struct device *dev;
+pcmcia_card_deactivate(struct device *dev)
{
struct pcmcia_softc *sc = (struct pcmcia_softc *) dev;
struct pcmcia_function *pf;
}
int
-pcmcia_submatch(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+pcmcia_submatch(struct device *parent, void *match, void *aux)
{
struct cfdata *cf = match;
struct pcmcia_attach_args *paa = aux;
}
int
-pcmcia_print(arg, pnp)
- void *arg;
- const char *pnp;
+pcmcia_print(void *arg, const char *pnp)
{
struct pcmcia_attach_args *pa = arg;
struct pcmcia_softc *sc = pa->pf->sc;
}
int
-pcmcia_card_gettype(dev)
- struct device *dev;
+pcmcia_card_gettype(struct device *dev)
{
struct pcmcia_softc *sc = (struct pcmcia_softc *)dev;
struct pcmcia_function *pf;
* disabled.
*/
void
-pcmcia_function_init(pf, cfe)
- struct pcmcia_function *pf;
- struct pcmcia_config_entry *cfe;
+pcmcia_function_init(struct pcmcia_function *pf,
+ struct pcmcia_config_entry *cfe)
{
if (pf->pf_flags & PFF_ENABLED)
panic("pcmcia_function_init: function is enabled");
/* Enable a PCMCIA function */
int
-pcmcia_function_enable(pf)
- struct pcmcia_function *pf;
+pcmcia_function_enable(struct pcmcia_function *pf)
{
struct pcmcia_function *tmp;
int reg;
/* Disable PCMCIA function. */
void
-pcmcia_function_disable(pf)
- struct pcmcia_function *pf;
+pcmcia_function_disable(struct pcmcia_function *pf)
{
struct pcmcia_function *tmp;
}
int
-pcmcia_io_map(pf, width, offset, size, pcihp, windowp)
- struct pcmcia_function *pf;
- int width;
- bus_addr_t offset;
- bus_size_t size;
- struct pcmcia_io_handle *pcihp;
- int *windowp;
+pcmcia_io_map(struct pcmcia_function *pf, int width, bus_addr_t offset,
+ bus_size_t size, struct pcmcia_io_handle *pcihp, int *windowp)
{
int reg;
}
void *
-pcmcia_intr_establish(pf, ipl, ih_fct, ih_arg, xname)
- struct pcmcia_function *pf;
- int ipl;
- int (*ih_fct)(void *);
- void *ih_arg;
- char *xname;
+pcmcia_intr_establish(struct pcmcia_function *pf, int ipl,
+ int (*ih_fct)(void *), void *ih_arg, char *xname)
{
void *ret;
int s, ihcnt, hiipl, reg;
}
void
-pcmcia_intr_disestablish(pf, ih)
- struct pcmcia_function *pf;
- void *ih;
+pcmcia_intr_disestablish(struct pcmcia_function *pf, void *ih)
{
int s, reg, ihcnt, hiipl;
struct pcmcia_function *pf2;
}
const char *
-pcmcia_intr_string(pf, ih)
- struct pcmcia_function *pf;
- void *ih;
+pcmcia_intr_string(struct pcmcia_function *pf, void *ih)
{
return pcmcia_chip_intr_string(pf->sc->pct, pf->sc->pch, ih);
}
int
-pcmcia_card_intr(arg)
- void *arg;
+pcmcia_card_intr(void *arg)
{
struct pcmcia_softc *sc = arg;
struct pcmcia_function *pf;
-/* $OpenBSD: pcmcia_cis.c,v 1.21 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: pcmcia_cis.c,v 1.22 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: pcmcia_cis.c,v 1.9 1998/08/22 23:41:48 msaitoh Exp $ */
/*
}
void
-pcmcia_read_cis(sc)
- struct pcmcia_softc *sc;
+pcmcia_read_cis(struct pcmcia_softc *sc)
{
struct cis_state state;
}
int
-pcmcia_scan_cis(dev, fct, arg)
- struct device *dev;
- int (*fct)(struct pcmcia_tuple *, void *);
- void *arg;
+pcmcia_scan_cis(struct device *dev, int (*fct)(struct pcmcia_tuple *, void *),
+ void *arg)
{
struct pcmcia_softc *sc = (struct pcmcia_softc *) dev;
pcmcia_chipset_tag_t pct;
/* XXX this is incredibly verbose. Not sure what trt is */
void
-pcmcia_print_cis(sc)
- struct pcmcia_softc *sc;
+pcmcia_print_cis(struct pcmcia_softc *sc)
{
struct pcmcia_card *card = &sc->card;
struct pcmcia_function *pf;
}
int
-pcmcia_parse_cis_tuple(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+pcmcia_parse_cis_tuple(struct pcmcia_tuple *tuple, void *arg)
{
/* most of these are educated guesses */
static struct pcmcia_config_entry init_cfe = {
-/* $OpenBSD: pcmcia_cis_quirks.c,v 1.14 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: pcmcia_cis_quirks.c,v 1.15 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: pcmcia_cis_quirks.c,v 1.3 1998/12/29 09:00:28 marc Exp $ */
/*
&pcmcia_sveclancard_func0, &pcmcia_sveclancard_func0_cfe0 },
};
-void pcmcia_check_cis_quirks(sc)
- struct pcmcia_softc *sc;
+void
+pcmcia_check_cis_quirks(struct pcmcia_softc *sc)
{
int wiped = 0;
int i, j;
-/* $OpenBSD: wdc_pcmcia.c,v 1.32 2017/12/30 20:46:59 guenther Exp $ */
+/* $OpenBSD: wdc_pcmcia.c,v 1.33 2021/03/07 06:20:09 jsg Exp $ */
/* $NetBSD: wdc_pcmcia.c,v 1.19 1999/02/19 21:49:43 abs Exp $ */
/*-
wdc_pcmcia_lookup(struct pcmcia_attach_args *);
int
-wdc_pcmcia_disk_device_interface_callback(tuple, arg)
- struct pcmcia_tuple *tuple;
- void *arg;
+wdc_pcmcia_disk_device_interface_callback(struct pcmcia_tuple *tuple, void *arg)
{
struct wdc_pcmcia_disk_device_interface_args *ddi = arg;
}
int
-wdc_pcmcia_disk_device_interface(pf)
- struct pcmcia_function *pf;
+wdc_pcmcia_disk_device_interface(struct pcmcia_function *pf)
{
struct wdc_pcmcia_disk_device_interface_args ddi;
}
struct wdc_pcmcia_product *
-wdc_pcmcia_lookup(pa)
- struct pcmcia_attach_args *pa;
+wdc_pcmcia_lookup(struct pcmcia_attach_args *pa)
{
struct wdc_pcmcia_product *wpp;
int i, cis_match;
}
static int
-wdc_pcmcia_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+wdc_pcmcia_match(struct device *parent, void *match, void *aux)
{
struct pcmcia_attach_args *pa = aux;
struct pcmcia_softc *sc;
}
static void
-wdc_pcmcia_attach(parent, self, aux)
- struct device *parent;
- struct device *self;
- void *aux;
+wdc_pcmcia_attach(struct device *parent, struct device *self, void *aux)
{
struct wdc_pcmcia_softc *sc = (void *)self;
struct pcmcia_attach_args *pa = aux;
}
int
-wdc_pcmcia_detach(self, flags)
- struct device *self;
- int flags;
+wdc_pcmcia_detach(struct device *self, int flags)
{
struct wdc_pcmcia_softc *sc = (struct wdc_pcmcia_softc *)self;
int error;
}
int
-wdc_pcmcia_activate(self, act)
- struct device *self;
- int act;
+wdc_pcmcia_activate(struct device *self, int act)
{
struct wdc_pcmcia_softc *sc = (struct wdc_pcmcia_softc *)self;
int rv = 0;