diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-09-24 05:23:30 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-09-24 05:23:30 +0000 |
commit | 5c8e9b3834a4ff540bf1a4a77239fae5b3c19eb5 (patch) | |
tree | f30b315e48396b5d7a46d28ab817fd48d9bb14d6 /sys/dev/pci/hifn7751.c | |
parent | 844dc9c5b7ed60705d78845f45c5bfc407d0fd3d (diff) |
initial support for hifn 7955 (no AES or PK yet)
Diffstat (limited to 'sys/dev/pci/hifn7751.c')
-rw-r--r-- | sys/dev/pci/hifn7751.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index a629cc20f50..450fca4d330 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.141 2003/08/14 15:20:29 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.142 2003/09/24 05:23:29 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -127,6 +127,7 @@ const struct pci_matchid hifn_devices[] = { { PCI_VENDOR_HIFN, PCI_PRODUCT_HIFN_7751 }, { PCI_VENDOR_HIFN, PCI_PRODUCT_HIFN_7811 }, { PCI_VENDOR_HIFN, PCI_PRODUCT_HIFN_7951 }, + { PCI_VENDOR_HIFN, PCI_PRODUCT_HIFN_7955 }, { PCI_VENDOR_NETSEC, PCI_PRODUCT_NETSEC_7751 }, }; @@ -273,7 +274,12 @@ hifn_attach(struct device *parent, struct device *self, void *aux) goto fail_mem; } - hifn_sessions(sc); + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_HIFN && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_HIFN_7955) { + sc->sc_maxses = 125; + sc->sc_ramsize = 32 * 1024; + } else + hifn_sessions(sc); rseg = sc->sc_ramsize / 1024; rbase = 'K'; @@ -567,6 +573,11 @@ struct pci2id { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, { + PCI_VENDOR_HIFN, + PCI_PRODUCT_HIFN_7955, + { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00 } + }, { PCI_VENDOR_NETSEC, PCI_PRODUCT_NETSEC_7751, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |