From f58036892d1c192debc42d78dc8234abb13c1bca Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 25 Oct 2001 19:40:15 +0000 Subject: implement "the other" pci interface for wavelans, found on intersil mini-pci cards. inspired by the netbsd's if_wi_pci.c . rename WI_COR_* into WI_PLX_COR_*, per millert@'s suggestion. tested by millert@ for the plx-based cards. --- sys/dev/ic/if_wireg.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/if_wireg.h b/sys/dev/ic/if_wireg.h index ad5bd7ea6ec..6e88eeabb90 100644 --- a/sys/dev/ic/if_wireg.h +++ b/sys/dev/ic/if_wireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wireg.h,v 1.6 2001/10/25 16:39:25 mickey Exp $ */ +/* $OpenBSD: if_wireg.h,v 1.7 2001/10/25 19:40:06 mickey Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -263,8 +263,30 @@ #define WI_AUX_OFFSET 0x3C #define WI_AUX_DATA 0x3E -#define WI_COR_OFFSET 0x3E0 -#define WI_COR_VALUE 0x41 +#define WI_PLX_COR_OFFSET 0x3E0 +#define WI_PLX_COR_VALUE 0x41 + +/* + * PCI Host Interface Registers (HFA3842 Specific) + * The value of all Register's Offset, such as WI_INFO_FID and WI_PARAM0, + * has doubled. + * About WI_PCI_COR: In this Register, only soft-reset bit implement; Bit(7). + */ +#define WI_PCI_COR 0x4C +#define WI_PCI_HCR 0x5C +#define WI_PCI_MASTER0_ADDRH 0x80 +#define WI_PCI_MASTER0_ADDRL 0x84 +#define WI_PCI_MASTER0_LEN 0x88 +#define WI_PCI_MASTER0_CON 0x8C + +#define WI_PCI_STATUS 0x98 + +#define WI_PCI_MASTER1_ADDRH 0xA0 +#define WI_PCI_MASTER1_ADDRL 0xA4 +#define WI_PCI_MASTER1_LEN 0xA8 +#define WI_PCI_MASTER1_CON 0xAC + +#define WI_PCI_SOFT_RESET (1 << 7) /* * One form of communication with the Hermes is with what Lucent calls -- cgit v1.2.3