-/* $OpenBSD: adv_pci.c,v 1.13 2020/02/18 20:24:52 krw Exp $ */
+/* $OpenBSD: adv_pci.c,v 1.14 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: adv_pci.c,v 1.5 1998/09/26 15:52:55 dante Exp $ */
/*
* the actual probe routine to check it out.
*/
int
-adv_pci_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+adv_pci_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, adv_pci_devices,
nitems(adv_pci_devices)));
void
-adv_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+adv_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
ASC_SOFTC *sc = (void *) self;
-/* $OpenBSD: adw_pci.c,v 1.18 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: adw_pci.c,v 1.19 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: adw_pci.c,v 1.7 2000/05/26 15:13:46 dante Exp $ */
/*
* the actual probe routine to check it out.
*/
int
-adw_pci_match(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+adw_pci_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, adw_pci_devices,
nitems(adw_pci_devices)));
void
-adw_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+adw_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
ADW_SOFTC *sc = (void *) self;
-/* $OpenBSD: ahc_pci.c,v 1.59 2020/07/05 21:54:44 krw Exp $ */
+/* $OpenBSD: ahc_pci.c,v 1.60 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: ahc_pci.c,v 1.43 2003/08/18 09:16:22 taca Exp $ */
/*
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: ahc_pci.c,v 1.59 2020/07/05 21:54:44 krw Exp $
+ * $Id: ahc_pci.c,v 1.60 2021/03/05 12:40:13 jsg Exp $
*
* //depot/aic7xxx/aic7xxx/aic7xxx_pci.c#57 $
*
};
const struct ahc_pci_identity *
-ahc_find_pci_device(id, subid, func)
- pcireg_t id, subid;
- u_int func;
+ahc_find_pci_device(pcireg_t id, pcireg_t subid, u_int func)
{
u_int64_t full_id;
const struct ahc_pci_identity *entry;
}
int
-ahc_pci_probe(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+ahc_pci_probe(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
const struct ahc_pci_identity *entry;
}
void
-ahc_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+ahc_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
const struct ahc_pci_identity *entry;
-/* $OpenBSD: bktr_os.c,v 1.33 2020/06/20 16:06:05 krw Exp $ */
+/* $OpenBSD: bktr_os.c,v 1.34 2021/03/05 12:40:14 jsg Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp $ */
/*
#endif
int
-bktr_probe(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+bktr_probe(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
* Special Memory Allocation
*/
vaddr_t
-get_bktr_mem(bktr, dmapp, size)
- bktr_ptr_t bktr;
- bus_dmamap_t *dmapp;
- unsigned int size;
+get_bktr_mem(bktr_ptr_t bktr, bus_dmamap_t *dmapp, unsigned int size)
{
bus_dma_tag_t dmat = bktr->dmat;
bus_dma_segment_t seg;
}
void
-free_bktr_mem(bktr, dmap, kva)
- bktr_ptr_t bktr;
- bus_dmamap_t dmap;
- vaddr_t kva;
+free_bktr_mem(bktr_ptr_t bktr, bus_dmamap_t dmap, vaddr_t kva)
{
bus_dma_tag_t dmat = bktr->dmat;
-/* $OpenBSD: cac_pci.c,v 1.16 2019/12/31 00:16:03 jsg Exp $ */
+/* $OpenBSD: cac_pci.c,v 1.17 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: cac_pci.c,v 1.10 2001/01/10 16:48:04 ad Exp $ */
/*-
};
const struct cac_pci_type *
-cac_pci_findtype(pa)
- struct pci_attach_args *pa;
+cac_pci_findtype(struct pci_attach_args *pa)
{
const struct cac_pci_type *ct;
const struct cac_pci_product *cp;
}
int
-cac_pci_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+cac_pci_match(struct device *parent, void *match, void *aux)
{
return (cac_pci_findtype(aux) != NULL);
}
void
-cac_pci_attach(parent, self, aux)
- struct device *parent;
- struct device *self;
- void *aux;
+cac_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa;
const struct cac_pci_type *ct;
return (ret);
}
-
void
cac_pci_l0_submit(struct cac_softc *sc, struct cac_ccb *ccb)
{
-/* $OpenBSD: cs4281.c,v 1.37 2019/12/28 07:55:48 fcambus Exp $ */
+/* $OpenBSD: cs4281.c,v 1.38 2021/03/05 12:40:13 jsg Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
};
int
-cs4281_match(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+cs4281_match(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = (struct pci_attach_args *)aux;
}
void
-cs4281_attach(parent, self, aux)
- struct device *parent;
- struct device *self;
- void *aux;
+cs4281_attach(struct device *parent, struct device *self, void *aux)
{
struct cs4281_softc *sc = (struct cs4281_softc *)self;
struct pci_attach_args *pa = (struct pci_attach_args *)aux;
#endif
}
-
int
-cs4281_intr(p)
- void *p;
+cs4281_intr(void *p)
{
struct cs4281_softc *sc = p;
u_int32_t intr, val;
}
int
-cs4281_set_params(addr, setmode, usemode, play, rec)
- void *addr;
- int setmode, usemode;
- struct audio_params *play, *rec;
+cs4281_set_params(void *addr, int setmode, int usemode,
+ struct audio_params *play, struct audio_params *rec)
{
struct cs4281_softc *sc = addr;
struct audio_params *p;
}
int
-cs4281_halt_output(addr)
- void *addr;
+cs4281_halt_output(void *addr)
{
struct cs4281_softc *sc = addr;
}
int
-cs4281_halt_input(addr)
- void *addr;
+cs4281_halt_input(void *addr)
{
struct cs4281_softc *sc = addr;
}
int
-cs4281_trigger_output(addr, start, end, blksize, intr, arg, param)
- void *addr;
- void *start, *end;
- int blksize;
- void (*intr)(void *);
- void *arg;
- struct audio_params *param;
+cs4281_trigger_output(void *addr, void *start, void *end, int blksize,
+ void (*intr)(void *), void *arg, struct audio_params *param)
{
struct cs4281_softc *sc = addr;
u_int32_t fmt = 0;
}
int
-cs4281_trigger_input(addr, start, end, blksize, intr, arg, param)
- void *addr;
- void *start, *end;
- int blksize;
- void (*intr)(void *);
- void *arg;
- struct audio_params *param;
+cs4281_trigger_input(void *addr, void *start, void *end, int blksize,
+ void (*intr)(void *), void *arg, struct audio_params *param)
{
struct cs4281_softc *sc = addr;
struct cs4281_dma *p;
/* convert sample rate to register value */
u_int8_t
-cs4281_sr2regval(rate)
- int rate;
+cs4281_sr2regval(int rate)
{
u_int8_t retval;
return (retval);
}
-
void
-cs4281_set_dac_rate(sc, rate)
- struct cs4281_softc *sc;
- int rate;
+cs4281_set_dac_rate(struct cs4281_softc *sc, int rate)
{
BA0WRITE4(sc, CS4281_DACSR, cs4281_sr2regval(rate));
}
void
-cs4281_set_adc_rate(sc, rate)
- struct cs4281_softc *sc;
- int rate;
+cs4281_set_adc_rate(struct cs4281_softc *sc, int rate)
{
BA0WRITE4(sc, CS4281_ADCSR, cs4281_sr2regval(rate));
}
int
-cs4281_init(sc)
- struct cs4281_softc *sc;
+cs4281_init(struct cs4281_softc *sc)
{
int n;
u_int16_t data;
return (sc->codec_if->vtbl->mixer_get_port(sc->codec_if, cp));
}
-
int
cs4281_query_devinfo(void *addr, mixer_devinfo_t *dip)
{
return (KERNADDR(p));
}
-
-
void
cs4281_free(void *addr, void *ptr, int pool)
{
return (0);
}
-
int
cs4281_read_codec(void *addr, u_int8_t ac97_addr, u_int16_t *ac97_data)
{
return (error);
}
-
int
-cs4281_src_wait(sc)
- struct cs4281_softc *sc;
+cs4281_src_wait(struct cs4281_softc *sc)
{
int n;
-/* $OpenBSD: cy_pci.c,v 1.14 2011/04/03 15:36:02 jasper Exp $ */
+/* $OpenBSD: cy_pci.c,v 1.15 2021/03/05 12:40:13 jsg Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
};
int
-cy_pci_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+cy_pci_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, cy_pci_devices,
nitems(cy_pci_devices)));
}
void
-cy_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+cy_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct cy_pci_softc *psc = (struct cy_pci_softc *)self;
struct cy_softc *sc = (struct cy_softc *)self;
}
int
-intel_enable_gtt()
+intel_enable_gtt(void)
{
struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0];
-/* $OpenBSD: i82365_pci.c,v 1.12 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: i82365_pci.c,v 1.13 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: i82365_pci.c,v 1.11 2000/02/24 03:42:44 itohy Exp $ */
/*
};
int
-pcic_pci_match(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+pcic_pci_match(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = (struct pci_attach_args *) aux;
void pcic_isa_config_interrupts(struct device *);
void
-pcic_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+pcic_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pcic_softc *sc = (void *) self;
struct pcic_pci_softc *psc = (void *) self;
-/* $OpenBSD: if_ep_pci.c,v 1.34 2015/11/24 17:11:39 mpi Exp $ */
+/* $OpenBSD: if_ep_pci.c,v 1.35 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: if_ep_pci.c,v 1.13 1996/10/21 22:56:38 thorpej Exp $ */
/*
};
int
-ep_pci_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+ep_pci_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, ep_pci_devices,
nitems(ep_pci_devices)));
}
void
-ep_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+ep_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct ep_softc *sc = (void *)self;
struct pci_attach_args *pa = aux;
-/* $OpenBSD: if_hme_pci.c,v 1.22 2019/12/05 12:46:54 mpi Exp $ */
+/* $OpenBSD: if_hme_pci.c,v 1.23 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: if_hme_pci.c,v 1.3 2000/12/28 22:59:13 sommerfeld Exp $ */
/*
};
int
-hmematch_pci(parent, vcf, aux)
- struct device *parent;
- void *vcf;
- void *aux;
+hmematch_pci(struct device *parent, void *vcf, void *aux)
{
struct pci_attach_args *pa = aux;
}
void
-hmeattach_pci(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+hmeattach_pci(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
struct hme_pci_softc *hsc = (void *)self;
-/* $OpenBSD: if_wb.c,v 1.72 2020/07/10 13:26:38 patrick Exp $ */
+/* $OpenBSD: if_wb.c,v 1.73 2021/03/05 12:40:13 jsg Exp $ */
/*
* Copyright (c) 1997, 1998
/*
* Send a read command and address to the EEPROM, check for ACK.
*/
-void wb_eeprom_putbyte(sc, addr)
- struct wb_softc *sc;
- int addr;
+void
+wb_eeprom_putbyte(struct wb_softc *sc, int addr)
{
int d, i;
/*
* Read a word of data stored in the EEPROM at address 'addr.'
*/
-void wb_eeprom_getword(sc, addr, dest)
- struct wb_softc *sc;
- int addr;
- u_int16_t *dest;
+void
+wb_eeprom_getword(struct wb_softc *sc, int addr, u_int16_t *dest)
{
int i;
u_int16_t word = 0;
/*
* Read a sequence of words from the EEPROM.
*/
-void wb_read_eeprom(sc, dest, off, cnt, swap)
- struct wb_softc *sc;
- caddr_t dest;
- int off;
- int cnt;
- int swap;
+void
+wb_read_eeprom(struct wb_softc *sc, caddr_t dest, int off, int cnt, int swap)
{
int i;
u_int16_t word = 0, *ptr;
/*
* Sync the PHYs by setting data bit and strobing the clock 32 times.
*/
-void wb_mii_sync(sc)
- struct wb_softc *sc;
+void
+wb_mii_sync(struct wb_softc *sc)
{
int i;
/*
* Clock a series of bits through the MII.
*/
-void wb_mii_send(sc, bits, cnt)
- struct wb_softc *sc;
- u_int32_t bits;
- int cnt;
+void
+wb_mii_send(struct wb_softc *sc, u_int32_t bits, int cnt)
{
int i;
/*
* Read an PHY register through the MII.
*/
-int wb_mii_readreg(sc, frame)
- struct wb_softc *sc;
- struct wb_mii_frame *frame;
-
+int
+wb_mii_readreg(struct wb_softc *sc, struct wb_mii_frame *frame)
{
int i, ack, s;
/*
* Write to a PHY register through the MII.
*/
-int wb_mii_writereg(sc, frame)
- struct wb_softc *sc;
- struct wb_mii_frame *frame;
-
+int
+wb_mii_writereg(struct wb_softc *sc, struct wb_mii_frame *frame)
{
int s;
}
int
-wb_miibus_readreg(dev, phy, reg)
- struct device *dev;
- int phy, reg;
+wb_miibus_readreg(struct device *dev, int phy, int reg)
{
struct wb_softc *sc = (struct wb_softc *)dev;
struct wb_mii_frame frame;
}
void
-wb_miibus_writereg(dev, phy, reg, data)
- struct device *dev;
- int phy, reg, data;
+wb_miibus_writereg(struct device *dev, int phy, int reg, int data)
{
struct wb_softc *sc = (struct wb_softc *)dev;
struct wb_mii_frame frame;
}
void
-wb_miibus_statchg(dev)
- struct device *dev;
+wb_miibus_statchg(struct device *dev)
{
struct wb_softc *sc = (struct wb_softc *)dev;
/*
* Program the 64-bit multicast hash filter.
*/
-void wb_setmulti(sc)
- struct wb_softc *sc;
+void
+wb_setmulti(struct wb_softc *sc)
{
struct ifnet *ifp;
int h = 0;
* first have to put the transmit and/or receive logic in the idle state.
*/
void
-wb_setcfg(sc, media)
- struct wb_softc *sc;
- uint64_t media;
+wb_setcfg(struct wb_softc *sc, uint64_t media)
{
int i, restart = 0;
}
void
-wb_reset(sc)
- struct wb_softc *sc;
+wb_reset(struct wb_softc *sc)
{
int i;
struct mii_data *mii = &sc->sc_mii;
}
void
-wb_fixmedia(sc)
- struct wb_softc *sc;
+wb_fixmedia(struct wb_softc *sc)
{
struct mii_data *mii = &sc->sc_mii;
uint64_t media;
* IDs against our list and return a device name if we find a match.
*/
int
-wb_probe(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+wb_probe(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, wb_devices,
nitems(wb_devices)));
* setup and ethernet/BPF attach.
*/
void
-wb_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+wb_attach(struct device *parent, struct device *self, void *aux)
{
struct wb_softc *sc = (struct wb_softc *)self;
struct pci_attach_args *pa = aux;
/*
* Initialize the transmit descriptors.
*/
-int wb_list_tx_init(sc)
- struct wb_softc *sc;
+int
+wb_list_tx_init(struct wb_softc *sc)
{
struct wb_chain_data *cd;
struct wb_list_data *ld;
* we arrange the descriptors in a closed ring, so that the last descriptor
* points back to the first.
*/
-int wb_list_rx_init(sc)
- struct wb_softc *sc;
+int
+wb_list_rx_init(struct wb_softc *sc)
{
struct wb_chain_data *cd;
struct wb_list_data *ld;
* Initialize an RX descriptor and attach an MBUF cluster.
*/
void
-wb_newbuf(sc, c)
- struct wb_softc *sc;
- struct wb_chain_onefrag *c;
+wb_newbuf(struct wb_softc *sc, struct wb_chain_onefrag *c)
{
c->wb_ptr->wb_data = VTOPHYS(c->wb_buf + sizeof(u_int64_t));
c->wb_ptr->wb_ctl = WB_RXCTL_RLINK | ETHER_MAX_DIX_LEN;
* A frame has been uploaded: pass the resulting mbuf chain up to
* the higher level protocols.
*/
-void wb_rxeof(sc)
- struct wb_softc *sc;
+void
+wb_rxeof(struct wb_softc *sc)
{
struct mbuf_list ml = MBUF_LIST_INITIALIZER();
struct ifnet *ifp;
if_input(ifp, &ml);
}
-void wb_rxeoc(sc)
- struct wb_softc *sc;
+void
+wb_rxeoc(struct wb_softc *sc)
{
wb_rxeof(sc);
* A frame was downloaded to the chip. It's safe for us to clean up
* the list buffers.
*/
-void wb_txeof(sc)
- struct wb_softc *sc;
+void
+wb_txeof(struct wb_softc *sc)
{
struct wb_chain *cur_tx;
struct ifnet *ifp;
/*
* TX 'end of channel' interrupt handler.
*/
-void wb_txeoc(sc)
- struct wb_softc *sc;
+void
+wb_txeoc(struct wb_softc *sc)
{
struct ifnet *ifp;
return;
}
-int wb_intr(arg)
- void *arg;
+int
+wb_intr(void *arg)
{
struct wb_softc *sc;
struct ifnet *ifp;
}
void
-wb_tick(xsc)
- void *xsc;
+wb_tick(void *xsc)
{
struct wb_softc *sc = xsc;
int s;
* Encapsulate an mbuf chain in a descriptor by coupling the mbuf data
* pointers to the fragment pointers.
*/
-int wb_encap(sc, c, m_head)
- struct wb_softc *sc;
- struct wb_chain *c;
- struct mbuf *m_head;
+int
+wb_encap(struct wb_softc *sc, struct wb_chain *c, struct mbuf *m_head)
{
int frag = 0;
struct wb_desc *f = NULL;
* copy of the pointers since the transmit list fragment pointers are
* physical addresses.
*/
-
-void wb_start(ifp)
- struct ifnet *ifp;
+void
+wb_start(struct ifnet *ifp)
{
struct wb_softc *sc;
struct mbuf *m_head = NULL;
return;
}
-void wb_init(xsc)
- void *xsc;
+void
+wb_init(void *xsc)
{
struct wb_softc *sc = xsc;
struct ifnet *ifp = &sc->arpcom.ac_if;
* Set media options.
*/
int
-wb_ifmedia_upd(ifp)
- struct ifnet *ifp;
+wb_ifmedia_upd(struct ifnet *ifp)
{
struct wb_softc *sc = ifp->if_softc;
* Report current media status.
*/
void
-wb_ifmedia_sts(ifp, ifmr)
- struct ifnet *ifp;
- struct ifmediareq *ifmr;
+wb_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
{
struct wb_softc *sc = ifp->if_softc;
struct mii_data *mii = &sc->sc_mii;
ifmr->ifm_status = mii->mii_media_status;
}
-int wb_ioctl(ifp, command, data)
- struct ifnet *ifp;
- u_long command;
- caddr_t data;
+int
+wb_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct wb_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *) data;
return(error);
}
-void wb_watchdog(ifp)
- struct ifnet *ifp;
+void
+wb_watchdog(struct ifnet *ifp)
{
struct wb_softc *sc;
* Stop the adapter and free any mbufs allocated to the
* RX and TX lists.
*/
-void wb_stop(sc)
- struct wb_softc *sc;
+void
+wb_stop(struct wb_softc *sc)
{
int i;
struct ifnet *ifp;
-/* $OpenBSD: iha_pci.c,v 1.18 2020/07/20 14:41:13 krw Exp $ */
+/* $OpenBSD: iha_pci.c,v 1.19 2021/03/05 12:40:13 jsg Exp $ */
/*-------------------------------------------------------------------------
*
* Device driver for the INI-9XXXU/UW or INIC-940/950 PCI SCSI Controller.
};
int
-iha_pci_probe(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+iha_pci_probe(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
}
void
-iha_pci_attach(parent, self, aux)
- struct device *parent;
- struct device *self;
- void *aux;
+iha_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;
struct scsibus_attach_args saa;
-/* $OpenBSD: pccbb.c,v 1.100 2020/03/20 19:32:41 cheloha Exp $ */
+/* $OpenBSD: pccbb.c,v 1.101 2021/03/05 12:40:13 jsg Exp $ */
/* $NetBSD: pccbb.c,v 1.96 2004/03/28 09:49:31 nakayama Exp $ */
/*
}
int
-pcicbbmatch(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+pcicbbmatch(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = (struct pci_attach_args *)aux;
};
int
-cb_chipset(pci_id, flagp)
- u_int32_t pci_id;
- int *flagp;
+cb_chipset(u_int32_t pci_id, int *flagp)
{
struct yenta_chipinfo *yc;
-/* $OpenBSD: twe_pci.c,v 1.13 2011/04/03 15:36:03 jasper Exp $ */
+/* $OpenBSD: twe_pci.c,v 1.14 2021/03/05 12:40:13 jsg Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
};
int
-twe_pci_match(parent, match, aux)
- struct device *parent;
- void *match;
- void *aux;
+twe_pci_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, twe_pci_devices,
nitems(twe_pci_devices)));
}
void
-twe_pci_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+twe_pci_attach(struct device *parent, struct device *self, void *aux)
{
struct twe_softc *sc = (struct twe_softc *)self;
struct pci_attach_args *pa = aux;