summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pccbb.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 01:27:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 01:27:20 +0000
commit8327d0774703553db5e1a41a04bfdf4b1797c2ce (patch)
treeac9a52bace179e17769651fb9f805070d78abe5f /sys/dev/pci/pccbb.c
parent7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (diff)
First round of __P removal in sys
Diffstat (limited to 'sys/dev/pci/pccbb.c')
-rw-r--r--sys/dev/pci/pccbb.c170
1 files changed, 85 insertions, 85 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index d5d60067985..b00de73180b 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbb.c,v 1.28 2002/01/30 13:23:32 fgsch Exp $ */
+/* $OpenBSD: pccbb.c,v 1.29 2002/03/14 01:26:59 millert Exp $ */
/* $NetBSD: pccbb.c,v 1.42 2000/06/16 23:41:35 cgd Exp $ */
/*
@@ -86,117 +86,117 @@ struct cfdriver cbb_cd = {
#define DPRINTF(x)
#endif
-int pcicbbmatch __P((struct device *, void *, void *));
-void pccbbattach __P((struct device *, struct device *, void *));
-int pccbbintr __P((void *));
-void pccbb_shutdown __P((void *));
-void pci113x_insert __P((void *));
-int pccbbintr_function __P((struct pccbb_softc *));
+int pcicbbmatch(struct device *, void *, void *);
+void pccbbattach(struct device *, struct device *, void *);
+int pccbbintr(void *);
+void pccbb_shutdown(void *);
+void pci113x_insert(void *);
+int pccbbintr_function(struct pccbb_softc *);
-int pccbb_detect_card __P((struct pccbb_softc *));
+int pccbb_detect_card(struct pccbb_softc *);
-void pccbb_pcmcia_write __P((struct pcic_handle *, int, int));
-u_int8_t pccbb_pcmcia_read __P((struct pcic_handle *, int));
+void pccbb_pcmcia_write(struct pcic_handle *, int, int);
+u_int8_t pccbb_pcmcia_read(struct pcic_handle *, int);
#define Pcic_read(ph, reg) ((ph)->ph_read((ph), (reg)))
#define Pcic_write(ph, reg, val) ((ph)->ph_write((ph), (reg), (val)))
-int cb_reset __P((struct pccbb_softc *));
-int cb_detect_voltage __P((struct pccbb_softc *));
-int cbbprint __P((void *, const char *));
+int cb_reset(struct pccbb_softc *);
+int cb_detect_voltage(struct pccbb_softc *);
+int cbbprint(void *, const char *);
-int cb_chipset __P((u_int32_t, int *));
-void pccbb_pcmcia_attach_setup __P((struct pccbb_softc *,
- struct pcmciabus_attach_args *));
+int cb_chipset(u_int32_t, int *);
+void pccbb_pcmcia_attach_setup(struct pccbb_softc *,
+ struct pcmciabus_attach_args *);
#if 0
-void pccbb_pcmcia_attach_card __P((struct pcic_handle *));
-void pccbb_pcmcia_detach_card __P((struct pcic_handle *, int));
-void pccbb_pcmcia_deactivate_card __P((struct pcic_handle *));
+void pccbb_pcmcia_attach_card(struct pcic_handle *);
+void pccbb_pcmcia_detach_card(struct pcic_handle *, int);
+void pccbb_pcmcia_deactivate_card(struct pcic_handle *);
#endif
-int pccbb_ctrl __P((cardbus_chipset_tag_t, int));
-int pccbb_power __P((cardbus_chipset_tag_t, int));
-int pccbb_cardenable __P((struct pccbb_softc * sc, int function));
+int pccbb_ctrl(cardbus_chipset_tag_t, int);
+int pccbb_power(cardbus_chipset_tag_t, int);
+int pccbb_cardenable(struct pccbb_softc * sc, int function);
#if !rbus
-int pccbb_io_open __P((cardbus_chipset_tag_t, int, u_int32_t, u_int32_t));
-int pccbb_io_close __P((cardbus_chipset_tag_t, int));
-int pccbb_mem_open __P((cardbus_chipset_tag_t, int, u_int32_t, u_int32_t));
-int pccbb_mem_close __P((cardbus_chipset_tag_t, int));
+int pccbb_io_open(cardbus_chipset_tag_t, int, u_int32_t, u_int32_t);
+int pccbb_io_close(cardbus_chipset_tag_t, int);
+int pccbb_mem_open(cardbus_chipset_tag_t, int, u_int32_t, u_int32_t);
+int pccbb_mem_close(cardbus_chipset_tag_t, int);
#endif /* !rbus */
void *pccbb_intr_establish __P((struct pccbb_softc *, int irq, int level,
int (*ih) (void *), void *sc));
-void pccbb_intr_disestablish __P((struct pccbb_softc *, void *ih));
+void pccbb_intr_disestablish(struct pccbb_softc *, void *ih);
void *pccbb_cb_intr_establish __P((cardbus_chipset_tag_t, int irq, int level,
int (*ih) (void *), void *sc));
-void pccbb_cb_intr_disestablish __P((cardbus_chipset_tag_t ct, void *ih));
-
-cardbustag_t pccbb_make_tag __P((cardbus_chipset_tag_t, int, int, int));
-void pccbb_free_tag __P((cardbus_chipset_tag_t, cardbustag_t));
-cardbusreg_t pccbb_conf_read __P((cardbus_chipset_tag_t, cardbustag_t, int));
-void pccbb_conf_write __P((cardbus_chipset_tag_t, cardbustag_t, int,
- cardbusreg_t));
-void pccbb_chipinit __P((struct pccbb_softc *));
-
-int pccbb_pcmcia_mem_alloc __P((pcmcia_chipset_handle_t, bus_size_t,
- struct pcmcia_mem_handle *));
-void pccbb_pcmcia_mem_free __P((pcmcia_chipset_handle_t,
- struct pcmcia_mem_handle *));
-int pccbb_pcmcia_mem_map __P((pcmcia_chipset_handle_t, int, bus_addr_t,
- bus_size_t, struct pcmcia_mem_handle *, bus_addr_t *, int *));
-void pccbb_pcmcia_mem_unmap __P((pcmcia_chipset_handle_t, int));
-int pccbb_pcmcia_io_alloc __P((pcmcia_chipset_handle_t, bus_addr_t,
- bus_size_t, bus_size_t, struct pcmcia_io_handle *));
-void pccbb_pcmcia_io_free __P((pcmcia_chipset_handle_t,
- struct pcmcia_io_handle *));
-int pccbb_pcmcia_io_map __P((pcmcia_chipset_handle_t, int, bus_addr_t,
- bus_size_t, struct pcmcia_io_handle *, int *));
-void pccbb_pcmcia_io_unmap __P((pcmcia_chipset_handle_t, int));
+void pccbb_cb_intr_disestablish(cardbus_chipset_tag_t ct, void *ih);
+
+cardbustag_t pccbb_make_tag(cardbus_chipset_tag_t, int, int, int);
+void pccbb_free_tag(cardbus_chipset_tag_t, cardbustag_t);
+cardbusreg_t pccbb_conf_read(cardbus_chipset_tag_t, cardbustag_t, int);
+void pccbb_conf_write(cardbus_chipset_tag_t, cardbustag_t, int,
+ cardbusreg_t);
+void pccbb_chipinit(struct pccbb_softc *);
+
+int pccbb_pcmcia_mem_alloc(pcmcia_chipset_handle_t, bus_size_t,
+ struct pcmcia_mem_handle *);
+void pccbb_pcmcia_mem_free(pcmcia_chipset_handle_t,
+ struct pcmcia_mem_handle *);
+int pccbb_pcmcia_mem_map(pcmcia_chipset_handle_t, int, bus_addr_t,
+ bus_size_t, struct pcmcia_mem_handle *, bus_addr_t *, int *);
+void pccbb_pcmcia_mem_unmap(pcmcia_chipset_handle_t, int);
+int pccbb_pcmcia_io_alloc(pcmcia_chipset_handle_t, bus_addr_t,
+ bus_size_t, bus_size_t, struct pcmcia_io_handle *);
+void pccbb_pcmcia_io_free(pcmcia_chipset_handle_t,
+ struct pcmcia_io_handle *);
+int pccbb_pcmcia_io_map(pcmcia_chipset_handle_t, int, bus_addr_t,
+ bus_size_t, struct pcmcia_io_handle *, int *);
+void pccbb_pcmcia_io_unmap(pcmcia_chipset_handle_t, int);
void *pccbb_pcmcia_intr_establish __P((pcmcia_chipset_handle_t,
struct pcmcia_function *, int, int (*)(void *), void *, char *));
-void pccbb_pcmcia_intr_disestablish __P((pcmcia_chipset_handle_t,
- void *));
-void pccbb_pcmcia_socket_enable __P((pcmcia_chipset_handle_t));
-void pccbb_pcmcia_socket_disable __P((pcmcia_chipset_handle_t));
-int pccbb_pcmcia_card_detect __P((pcmcia_chipset_handle_t pch));
+void pccbb_pcmcia_intr_disestablish(pcmcia_chipset_handle_t,
+ void *);
+void pccbb_pcmcia_socket_enable(pcmcia_chipset_handle_t);
+void pccbb_pcmcia_socket_disable(pcmcia_chipset_handle_t);
+int pccbb_pcmcia_card_detect(pcmcia_chipset_handle_t pch);
-void pccbb_pcmcia_do_io_map __P((struct pcic_handle *, int));
-void pccbb_pcmcia_wait_ready __P((struct pcic_handle *));
-void pccbb_pcmcia_do_mem_map __P((struct pcic_handle *, int));
-void pccbb_powerhook __P((int, void *));
+void pccbb_pcmcia_do_io_map(struct pcic_handle *, int);
+void pccbb_pcmcia_wait_ready(struct pcic_handle *);
+void pccbb_pcmcia_do_mem_map(struct pcic_handle *, int);
+void pccbb_powerhook(int, void *);
/* bus-space allocation and deallocation functions */
#if rbus
-int pccbb_rbus_cb_space_alloc __P((cardbus_chipset_tag_t, rbus_tag_t,
+int pccbb_rbus_cb_space_alloc(cardbus_chipset_tag_t, rbus_tag_t,
bus_addr_t addr, bus_size_t size, bus_addr_t mask, bus_size_t align,
- int flags, bus_addr_t * addrp, bus_space_handle_t * bshp));
-int pccbb_rbus_cb_space_free __P((cardbus_chipset_tag_t, rbus_tag_t,
- bus_space_handle_t, bus_size_t));
+ int flags, bus_addr_t * addrp, bus_space_handle_t * bshp);
+int pccbb_rbus_cb_space_free(cardbus_chipset_tag_t, rbus_tag_t,
+ bus_space_handle_t, bus_size_t);
#endif /* rbus */
#if rbus
-int pccbb_open_win __P((struct pccbb_softc *, bus_space_tag_t,
- bus_addr_t, bus_size_t, bus_space_handle_t, int flags));
-int pccbb_close_win __P((struct pccbb_softc *, bus_space_tag_t,
- bus_space_handle_t, bus_size_t));
-int pccbb_winlist_insert __P((struct pccbb_win_chain_head *, bus_addr_t,
- bus_size_t, bus_space_handle_t, int));
-int pccbb_winlist_delete __P((struct pccbb_win_chain_head *,
- bus_space_handle_t, bus_size_t));
-void pccbb_winset __P((bus_addr_t align, struct pccbb_softc *,
- bus_space_tag_t));
+int pccbb_open_win(struct pccbb_softc *, bus_space_tag_t,
+ bus_addr_t, bus_size_t, bus_space_handle_t, int flags);
+int pccbb_close_win(struct pccbb_softc *, bus_space_tag_t,
+ bus_space_handle_t, bus_size_t);
+int pccbb_winlist_insert(struct pccbb_win_chain_head *, bus_addr_t,
+ bus_size_t, bus_space_handle_t, int);
+int pccbb_winlist_delete(struct pccbb_win_chain_head *,
+ bus_space_handle_t, bus_size_t);
+void pccbb_winset(bus_addr_t align, struct pccbb_softc *,
+ bus_space_tag_t);
void pccbb_winlist_show(struct pccbb_win_chain *);
#endif /* rbus */
/* for config_defer */
-void pccbb_pci_callback __P((struct device *));
+void pccbb_pci_callback(struct device *);
#if defined SHOW_REGS
-void cb_show_regs __P((pci_chipset_tag_t, pcitag_t, bus_space_tag_t,
- bus_space_handle_t memh));
+void cb_show_regs(pci_chipset_tag_t, pcitag_t, bus_space_tag_t,
+ bus_space_handle_t memh);
#endif
struct cfattach cbb_pci_ca = {
@@ -1273,7 +1273,7 @@ pccbb_power(ct, command)
#if defined CB_PCMCIA_POLL
struct cb_poll_str {
void *arg;
- int (*func) __P((void *));
+ int (*func)(void *);
int level;
pccard_chipset_tag_t ct;
int count;
@@ -1283,7 +1283,7 @@ static struct cb_poll_str cb_poll[10];
static int cb_poll_n = 0;
static struct timeout cb_poll_timeout;
-void cb_pcmcia_poll __P((void *arg));
+void cb_pcmcia_poll(void *arg);
void
cb_pcmcia_poll(arg)
@@ -1605,7 +1605,7 @@ pccbb_mem_close(ct, win)
* void *pccbb_cb_intr_establish(cardbus_chipset_tag_t ct,
* int irq,
* int level,
- * int (* func) __P((void *)),
+ * int (* func)(void *),
* void *arg)
*
* This function registers an interrupt handler at the bridge, in
@@ -1618,7 +1618,7 @@ void *
pccbb_cb_intr_establish(ct, irq, level, func, arg)
cardbus_chipset_tag_t ct;
int irq, level;
- int (*func) __P((void *));
+ int (*func)(void *);
void *arg;
{
struct pccbb_softc *sc = (struct pccbb_softc *)ct;
@@ -1648,7 +1648,7 @@ pccbb_cb_intr_disestablish(ct, ih)
* void *pccbb_intr_establish(struct pccbb_softc *sc,
* int irq,
* int level,
- * int (* func) __P((void *)),
+ * int (* func)(void *),
* void *arg)
*
* This function registers an interrupt handler at the bridge, in
@@ -1661,7 +1661,7 @@ void *
pccbb_intr_establish(sc, irq, level, func, arg)
struct pccbb_softc *sc;
int irq, level;
- int (*func) __P((void *));
+ int (*func)(void *);
void *arg;
{
struct pccbb_intrhand_list *pil, *newpil;
@@ -2671,7 +2671,7 @@ pccbb_pcmcia_mem_unmap(pch, window)
#if defined PCCBB_PCMCIA_POLL
struct pccbb_poll_str {
void *arg;
- int (*func) __P((void *));
+ int (*func)(void *);
int level;
struct pcic_handle *ph;
int count;
@@ -2682,7 +2682,7 @@ static struct pccbb_poll_str pccbb_poll[10];
static int pccbb_poll_n = 0;
static struct timeout pccbb_poll_timeout;
-void pccbb_pcmcia_poll __P((void *arg));
+void pccbb_pcmcia_poll(void *arg);
void
pccbb_pcmcia_poll(arg)
@@ -2746,7 +2746,7 @@ pccbb_pcmcia_intr_establish(pch, pf, ipl, func, arg, xname)
pcmcia_chipset_handle_t pch;
struct pcmcia_function *pf;
int ipl;
- int (*func) __P((void *));
+ int (*func)(void *);
void *arg;
char *xname;
{