summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorsmart <smart@cvs.openbsd.org>2001-08-19 19:58:57 +0000
committersmart <smart@cvs.openbsd.org>2001-08-19 19:58:57 +0000
commitcbbd6c725baf483541c88e797b527c4a244a6c74 (patch)
tree8cc67350f55a49478226fa86ed8298b966ecd24d /sys/dev/isa
parentcfe14e33021e434996c3b4e27f2fb6e27cffe035 (diff)
KNF
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/cy_isa.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/sys/dev/isa/cy_isa.c b/sys/dev/isa/cy_isa.c
index 8ecc709a5cc..926fb9d996d 100644
--- a/sys/dev/isa/cy_isa.c
+++ b/sys/dev/isa/cy_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy_isa.c,v 1.4 1999/11/30 23:48:07 aaron Exp $ */
+/* $OpenBSD: cy_isa.c,v 1.5 2001/08/19 19:58:56 smart Exp $ */
/*
* cy.c
@@ -51,7 +51,7 @@ int cy_probe_common __P((int card, bus_space_tag_t,
void cyattach __P((struct device *, struct device *, void *));
struct cfattach cy_isa_ca = {
- sizeof(struct cy_softc), cy_probe_isa, cyattach
+ sizeof(struct cy_softc), cy_probe_isa, cyattach
};
/*
@@ -59,29 +59,29 @@ struct cfattach cy_isa_ca = {
*/
int
cy_probe_isa(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+ struct device *parent;
+ void *match, *aux;
{
- int card = ((struct device *)match)->dv_unit;
- struct isa_attach_args *ia = aux;
- bus_space_tag_t memt;
- bus_space_handle_t memh;
+ int card = ((struct device *)match)->dv_unit;
+ struct isa_attach_args *ia = aux;
+ bus_space_tag_t memt;
+ bus_space_handle_t memh;
- if(ia->ia_irq == IRQUNK) {
- printf("cy%d error: interrupt not defined\n", card);
- return 0;
- }
+ if (ia->ia_irq == IRQUNK) {
+ printf("cy%d error: interrupt not defined\n", card);
+ return (0);
+ }
- memt = ia->ia_memt;
- if(bus_space_map(memt, ia->ia_maddr, 0x2000, 0, &memh) != 0)
- return 0;
+ memt = ia->ia_memt;
+ if (bus_space_map(memt, ia->ia_maddr, 0x2000, 0, &memh) != 0)
+ return (0);
- if(cy_probe_common(card, memt, memh, CY_BUSTYPE_ISA) == 0) {
- bus_space_unmap(memt, memh, 0x2000);
- return 0;
- }
+ if (cy_probe_common(card, memt, memh, CY_BUSTYPE_ISA) == 0) {
+ bus_space_unmap(memt, memh, 0x2000);
+ return (0);
+ }
- ia->ia_iosize = 0;
- ia->ia_msize = 0x2000;
- return 1;
+ ia->ia_iosize = 0;
+ ia->ia_msize = 0x2000;
+ return (1);
}