summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa.c
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-11-30 09:44:28 +0000
committerjmg <jmg@FreeBSD.org>1997-11-30 09:44:28 +0000
commit3d6622e13fba34f9da68d6ac2a35ded47540e529 (patch)
tree7ffd34783922332d90022ae4b5acb20e2a39f576 /sys/i386/isa/isa.c
parenteb130e286eba11bc727385d44aeec1fd36075e87 (diff)
downloadFreeBSD-src-3d6622e13fba34f9da68d6ac2a35ded47540e529.zip
FreeBSD-src-3d6622e13fba34f9da68d6ac2a35ded47540e529.tar.gz
fix a few style nites...
make isa_dmacascade, isa_dmastart, isa_dmadone, and find_isadev MUCH easier to be found by starting them at the beginging of the line... remove braces inside of ifdef RESOURCE_CHECK... found by % in vi...
Diffstat (limited to 'sys/i386/isa/isa.c')
-rw-r--r--sys/i386/isa/isa.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index ddbf625..0d5049b 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.106 1997/10/12 08:31:41 jkh Exp $
+ * $Id: isa.c,v 1.107 1997/11/21 18:13:58 bde Exp $
*/
/*
@@ -335,11 +335,10 @@ haveseen_isadev(dvp, checkbits)
return status;
#endif
#ifdef RESOURCE_CHECK
- if (!dvp->id_conflicts) {
+ if (!dvp->id_conflicts)
status = check_pciconflict(dvp, checkbits);
- } else if (bootverbose)
+ else if (bootverbose)
printf("\tnot checking for resource conflicts ...\n");
- }
#endif /* RESOURCE_CHECK */
return(status);
}
@@ -348,7 +347,8 @@ haveseen_isadev(dvp, checkbits)
* Configure all ISA devices
*/
void
-isa_configure() {
+isa_configure()
+{
struct isa_device *dvp;
printf("Probing for devices on the ISA bus:\n");
@@ -435,8 +435,6 @@ isa_configure() {
/*
* Configure an ISA device.
*/
-
-
static void
config_isadev(isdp, mp)
struct isa_device *isdp;
@@ -697,7 +695,8 @@ isa_dma_release(chan)
* isa_dmacascade(): program 8237 DMA controller channel to accept
* external dma control by a board.
*/
-void isa_dmacascade(chan)
+void
+isa_dmacascade(chan)
int chan;
{
#ifdef DIAGNOSTIC
@@ -719,7 +718,8 @@ void isa_dmacascade(chan)
* isa_dmastart(): program 8237 DMA controller channel, avoid page alignment
* problems by using a bounce buffer.
*/
-void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
+void
+isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
{
vm_offset_t phys;
int waport;
@@ -841,7 +841,8 @@ void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
}
}
-void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan)
+void
+isa_dmadone(int flags, caddr_t addr, int nbytes, int chan)
{
#ifdef DIAGNOSTIC
if (chan & ~VALID_DMA_MASK)
@@ -874,7 +875,8 @@ void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan)
*/
static int
-isa_dmarangecheck(caddr_t va, u_int length, int chan) {
+isa_dmarangecheck(caddr_t va, u_int length, int chan)
+{
vm_offset_t phys, priorpage = 0, endva;
u_int dma_pgmsk = (chan & 4) ? ~(128*1024-1) : ~(64*1024-1);
@@ -1034,7 +1036,8 @@ find_display()
*
*/
-struct isa_device *find_isadev(table, driverp, unit)
+struct isa_device *
+find_isadev(table, driverp, unit)
struct isa_device *table;
struct isa_driver *driverp;
int unit;
OpenPOWER on IntegriCloud