diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-10-17 17:58:31 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-10-17 17:58:31 +0000 |
commit | 8904997f53433029b17501cf482fb7d435e4955a (patch) | |
tree | 00cd7da7e560517dd5276595af05629fc22e4e7f /sys/dev | |
parent | 4cc53324f5609f667e233c77499eb0d3a936f6ba (diff) |
Define 4 channels max for pciide. Legacy ide controllers can only
have 2, but sata ones can more. From NetBSD.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pciidevar.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/pciidevar.h b/sys/dev/pci/pciidevar.h index a8ff73d4d09..5ec917c303f 100644 --- a/sys/dev/pci/pciidevar.h +++ b/sys/dev/pci/pciidevar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pciidevar.h,v 1.8 2004/09/24 07:38:38 grange Exp $ */ +/* $OpenBSD: pciidevar.h,v 1.9 2004/10/17 17:58:30 grange Exp $ */ /* $NetBSD: pciidevar.h,v 1.6 2001/01/12 16:04:00 bouyer Exp $ */ /* @@ -43,6 +43,14 @@ struct device; /* + * While standard PCI IDE controllers only have 2 channels, it is + * common for PCI SATA controllers to have more. Here we define + * the maximum number of channels that any one PCI IDE device can + * have. + */ +#define PCIIDE_MAX_CHANNELS 4 + +/* * Functions defined by machine-dependent code. */ |