summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-21 12:44:45 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-21 12:44:45 +0000
commit58daf95a97d8d2a1361926265eaef1beb656ed2d (patch)
tree0ba908b4d1b31dba3f4eb35f8bbab4bea55ae949 /sys/dev
parentfc6995f14c323c43df154cf0ea873bef2064a1e7 (diff)
IPS_MAXTARGETS should be 16, not 15.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ips.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index dd0843b0157..04aaf9f61b8 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.85 2009/03/21 12:34:41 grange Exp $ */
+/* $OpenBSD: ips.c,v 1.86 2009/03/21 12:44:44 grange Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
@@ -60,7 +60,7 @@ int ips_debug = IPS_D_ERR;
#define IPS_MAXDRIVES 8
#define IPS_MAXCHANS 4
-#define IPS_MAXTARGETS 15
+#define IPS_MAXTARGETS 16
#define IPS_MAXCHUNKS 16
#define IPS_MAXCMDS 128
@@ -227,7 +227,7 @@ struct ips_adapterinfo {
u_int16_t confupdcnt;
u_int8_t blkflag;
u_int8_t __reserved;
- u_int16_t deaddisk[IPS_MAXCHANS * (IPS_MAXTARGETS + 1)];
+ u_int16_t deaddisk[IPS_MAXCHANS][IPS_MAXTARGETS];
};
struct ips_driveinfo {
@@ -305,7 +305,7 @@ struct ips_conf {
u_int32_t seccnt;
u_int8_t devid[28];
- } dev[IPS_MAXCHANS][IPS_MAXTARGETS + 1];
+ } dev[IPS_MAXCHANS][IPS_MAXTARGETS];
u_int8_t reserved[512];
};
@@ -780,7 +780,7 @@ ips_attach(struct device *parent, struct device *self, void *aux)
link = &pt->pt_link;
link->openings = 1;
- link->adapter_target = IPS_MAXTARGETS + 1;
+ link->adapter_target = IPS_MAXTARGETS;
link->adapter_buswidth = lastarget + 1;
link->device = &ips_scsi_pt_device;
link->adapter = &ips_scsi_pt_adapter;