From ed34b2cf86e5f0e2a45e760146ef82d66b96b4b4 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 5 Nov 2007 07:06:03 +0000 Subject: recognise (and use) ahci 1.2 controllers. diff from Henrik Gustafsson --- sys/dev/pci/ahci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/ahci.c') 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 @@ -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); -- cgit v1.2.3