Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci ANSI'ify.
details: https://anonhg.NetBSD.org/src/rev/5dc36f539af9
branches: trunk
changeset: 499800:5dc36f539af9
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Nov 29 18:22:17 2000 +0000
description:
ANSI'ify.
diffstat:
sys/dev/pci/pci_map.c | 53 ++++++++++----------------------------------------
1 files changed, 11 insertions(+), 42 deletions(-)
diffs (96 lines):
diff -r 072c8125a9b3 -r 5dc36f539af9 sys/dev/pci/pci_map.c
--- a/sys/dev/pci/pci_map.c Wed Nov 29 17:55:52 2000 +0000
+++ b/sys/dev/pci/pci_map.c Wed Nov 29 18:22:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_map.c,v 1.8 2000/06/28 17:32:48 thorpej Exp $ */
+/* $NetBSD: pci_map.c,v 1.9 2000/11/29 18:22:17 thorpej Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -47,20 +47,9 @@
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
-static int pci_io_find __P((pci_chipset_tag_t, pcitag_t, int, pcireg_t,
- bus_addr_t *, bus_size_t *, int *));
-static int pci_mem_find __P((pci_chipset_tag_t, pcitag_t, int, pcireg_t,
- bus_addr_t *, bus_size_t *, int *));
-
static int
-pci_io_find(pc, tag, reg, type, basep, sizep, flagsp)
- pci_chipset_tag_t pc;
- pcitag_t tag;
- int reg;
- pcireg_t type;
- bus_addr_t *basep;
- bus_size_t *sizep;
- int *flagsp;
+pci_io_find(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
+ bus_addr_t *basep, bus_size_t *sizep, int *flagsp)
{
pcireg_t address, mask;
int s;
@@ -114,14 +103,8 @@
}
static int
-pci_mem_find(pc, tag, reg, type, basep, sizep, flagsp)
- pci_chipset_tag_t pc;
- pcitag_t tag;
- int reg;
- pcireg_t type;
- bus_addr_t *basep;
- bus_size_t *sizep;
- int *flagsp;
+pci_mem_find(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
+ bus_addr_t *basep, bus_size_t *sizep, int *flagsp)
{
pcireg_t address, mask, address1 = 0, mask1 = 0xffffffff;
u_int64_t waddress, wmask;
@@ -228,10 +211,7 @@
}
pcireg_t
-pci_mapreg_type(pc, tag, reg)
- pci_chipset_tag_t pc;
- pcitag_t tag;
- int reg;
+pci_mapreg_type(pci_chipset_tag_t pc, pcitag_t tag, int reg)
{
pcireg_t rv;
@@ -244,14 +224,8 @@
}
int
-pci_mapreg_info(pc, tag, reg, type, basep, sizep, flagsp)
- pci_chipset_tag_t pc;
- pcitag_t tag;
- int reg;
- pcireg_t type;
- bus_addr_t *basep;
- bus_size_t *sizep;
- int *flagsp;
+pci_mapreg_info(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t type,
+ bus_addr_t *basep, bus_size_t *sizep, int *flagsp)
{
if (PCI_MAPREG_TYPE(type) == PCI_MAPREG_TYPE_IO)
@@ -263,14 +237,9 @@
}
int
-pci_mapreg_map(pa, reg, type, busflags, tagp, handlep, basep, sizep)
- struct pci_attach_args *pa;
- int reg, busflags;
- pcireg_t type;
- bus_space_tag_t *tagp;
- bus_space_handle_t *handlep;
- bus_addr_t *basep;
- bus_size_t *sizep;
+pci_mapreg_map(struct pci_attach_args *pa, int reg, pcireg_t type,
+ int busflags, bus_space_tag_t *tagp, bus_space_handle_t *handlep,
+ bus_addr_t *basep, bus_size_t *sizep)
{
bus_space_tag_t tag;
bus_space_handle_t handle;
Home |
Main Index |
Thread Index |
Old Index