diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-07 20:46:01 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-07 20:46:01 +0000 |
commit | 4b74374c0971a8f5cb038ae41d414350feb887e8 (patch) | |
tree | 0310d0f4035777507a2a3c04a93cb015b93ebf83 /sys/dev | |
parent | e38546205c1ad81467772d5f335ec0b3e854aab2 (diff) |
oops, use correct size for GET_IOC_CHAN_DESC
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/gdt_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c index 9de878584b2..e05ce2dac8b 100644 --- a/sys/dev/ic/gdt_common.c +++ b/sys/dev/ic/gdt_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt_common.c,v 1.33 2006/05/07 20:34:08 marco Exp $ */ +/* $OpenBSD: gdt_common.c,v 1.34 2006/05/07 20:46:00 marco Exp $ */ /* * Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved. @@ -314,6 +314,7 @@ gdt_attach(gdt) if (gdt->sc_more_proc) { int bus; /* physical drives, channel addresses */ + /* step 1: get magical bus number from firmware */ gdt_enc32(gdt->sc_scratch + GDT_IOC_VERSION, GDT_IOC_NEWEST); gdt->sc_scratch[GDT_IOC_LIST_ENTRIES] = GDT_MAXBUS; gdt->sc_scratch[GDT_IOC_FIRST_CHAN] = 0; @@ -321,7 +322,7 @@ gdt_attach(gdt) gdt_enc32(gdt->sc_scratch + GDT_IOC_LIST_OFFSET, GDT_IOC_HDR_SZ); if (gdt_internal_cmd(gdt, GDT_CACHESERVICE, GDT_IOCTL, GDT_IOCHAN_DESC, GDT_INVALID_CHANNEL, - GDT_IOC_HDR_SZ + GDT_RAWIOC_SZ)) { + GDT_IOC_HDR_SZ + GDT_IOC_SZ)) { GDT_DPRINTF(GDT_D_INFO, ("method 1\n")); for (bus = 0; bus < gdt->sc_bus_cnt; bus++) { gdt->sc_raw[bus].ra_address = @@ -352,7 +353,6 @@ gdt_attach(gdt) gdt->sc_raw[bus].ra_local_no)); } } - } /* if (gdt->sc_more_proc) */ if (!gdt_internal_cmd(gdt, GDT_SCSIRAWSERVICE, GDT_INIT, 0, 0, 0)) { |