ahd(4): Support Adaptec 39320LPE adapter

2012-09-24 Thread Brad Smith
Add support for the Adaptec 39320LPE adapter.

>From FreeBSD


Index: ahd_pci.c
===
RCS file: /home/cvs/src/sys/dev/pci/ahd_pci.c,v
retrieving revision 1.18
diff -u -p -r1.18 ahd_pci.c
--- ahd_pci.c   31 May 2009 04:47:59 -  1.18
+++ ahd_pci.c   24 Sep 2012 08:00:01 -
@@ -119,6 +119,7 @@ ahd_compose_id(u_int device, u_int vendo
 #define ID_AHA_39320D_B0x801C900500419005ull
 #define ID_AHA_39320D_HP   0x8011900500AC0E11ull
 #define ID_AHA_39320D_B_HP 0x801C900500AC0E11ull
+#define ID_AHA_39320LPE0x8017900500459005ull
 #define ID_AIC7902_PCI_REV_A4  0x3
 #define ID_AIC7902_PCI_REV_B0  0x10
 #define SUBID_HP   0x0E11
@@ -218,6 +219,11 @@ struct ahd_pci_identity ahd_pci_ident_ta
},
{
ID_AHA_39320D_B_HP,
+   ID_ALL_MASK,
+   ahd_aic7902_setup
+   },
+   {
+   ID_AHA_39320LPE,
ID_ALL_MASK,
ahd_aic7902_setup
},

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: ahd(4): Support Adaptec 39320LPE adapter

2012-09-27 Thread Mark Kettenis
> Date: Mon, 24 Sep 2012 04:09:16 -0400
> From: Brad Smith 
> 
> Add support for the Adaptec 39320LPE adapter.
> 
> >From FreeBSD

Don't see a downside, so ok kettenis@

> Index: ahd_pci.c
> ===
> RCS file: /home/cvs/src/sys/dev/pci/ahd_pci.c,v
> retrieving revision 1.18
> diff -u -p -r1.18 ahd_pci.c
> --- ahd_pci.c 31 May 2009 04:47:59 -  1.18
> +++ ahd_pci.c 24 Sep 2012 08:00:01 -
> @@ -119,6 +119,7 @@ ahd_compose_id(u_int device, u_int vendo
>  #define ID_AHA_39320D_B  0x801C900500419005ull
>  #define ID_AHA_39320D_HP 0x8011900500AC0E11ull
>  #define ID_AHA_39320D_B_HP   0x801C900500AC0E11ull
> +#define ID_AHA_39320LPE  0x8017900500459005ull
>  #define ID_AIC7902_PCI_REV_A40x3
>  #define ID_AIC7902_PCI_REV_B00x10
>  #define SUBID_HP 0x0E11
> @@ -218,6 +219,11 @@ struct ahd_pci_identity ahd_pci_ident_ta
>   },
>   {
>   ID_AHA_39320D_B_HP,
> + ID_ALL_MASK,
> + ahd_aic7902_setup
> + },
> + {
> + ID_AHA_39320LPE,
>   ID_ALL_MASK,
>   ahd_aic7902_setup
>   },
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.