diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-05 07:06:03 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-05 07:06:03 +0000 |
commit | ed34b2cf86e5f0e2a45e760146ef82d66b96b4b4 (patch) | |
tree | e7cc2e7a5404be4c5694651064dbe6c76961878f /sys/dev/pci/ahci.c | |
parent | b66f62f3a029d7c622b111734d8d067d06d581cb (diff) |
recognise (and use) ahci 1.2 controllers.
diff from Henrik Gustafsson
Diffstat (limited to 'sys/dev/pci/ahci.c')
-rw-r--r-- | sys/dev/pci/ahci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index 5073b9ab092..db06c027ec9 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.131 2007/11/04 01:38:54 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.132 2007/11/05 07:06:02 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -94,6 +94,7 @@ int ahcidebug = AHCI_D_VERBOSE; #define AHCI_REG_VS_0_95 0x00000905 /* 0.95 */ #define AHCI_REG_VS_1_0 0x00010000 /* 1.0 */ #define AHCI_REG_VS_1_1 0x00010100 /* 1.1 */ +#define AHCI_REG_VS_1_2 0x00010200 /* 1.2 */ #define AHCI_REG_CCC_CTL 0x014 /* Coalescing Control */ #define AHCI_REG_CCC_CTL_INT(_r) (((_r) & 0xf8) >> 3) /* CCC INT slot */ #define AHCI_REG_CCC_PORTS 0x018 /* Coalescing Ports */ @@ -836,6 +837,9 @@ ahci_init(struct ahci_softc *sc) case AHCI_REG_VS_1_1: revision = "1.1"; break; + case AHCI_REG_VS_1_2: + revision = "1.2"; + break; default: printf(" unsupported AHCI revision 0x%08x\n", reg); |