Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Revert previous. Sorry.
details: https://anonhg.NetBSD.org/src/rev/7f413d568733
branches: trunk
changeset: 461052:7f413d568733
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Nov 14 09:15:12 2019 +0000
description:
Revert previous. Sorry.
diffstat:
sys/dev/pci/if_jmereg.h | 19 -------------------
sys/dev/pci/xhci_pci.c | 11 ++---------
2 files changed, 2 insertions(+), 28 deletions(-)
diffs (72 lines):
diff -r c4263591737a -r 7f413d568733 sys/dev/pci/if_jmereg.h
--- a/sys/dev/pci/if_jmereg.h Thu Nov 14 09:11:35 2019 +0000
+++ b/sys/dev/pci/if_jmereg.h Thu Nov 14 09:15:12 2019 +0000
@@ -62,21 +62,6 @@
#define SPI_SCK_CTRL 0x00000002
#define SPI_CS_N_CTRL 0x00000001
-#define JME_EFUSE_CTL1 0xB8
-#define EFUSE_CTL1_DATA_MASK 0xF0000000
-#define EFUSE_CTL1_EXECUTE 0x08000000
-#define EFUSE_CTL1_CMD_AUTOLOAD 0x02000000
-#define EFUSE_CTL1_CMD_READ 0x04000000
-#define EFUSE_CTL1_CMD_BLOW 0x06000000
-#define EFUSE_CTL1_CMD_MASK 0x06000000
-#define EFUSE_CTL1_AUTOLOAD_ERR 0x00010000
-#define EFUSE_CTL1_BYTE_SEL_MASK 0x0000FF00
-#define EFUSE_CTL1_BIT_SEL_MASK 0x00000070
-#define EFUSE_CTL1_AUTOLAOD_DONE 0x00000001
-
-#define JME_EFUSE_CTL2 0xBC
-#define EFUSE_CTL2_RESET 0x00008000
-
#define JME_PCI_PHYCFG0 0xC0
#define JME_PCI_PHYCFG1 0xC4
@@ -772,10 +757,6 @@
#define CHIPMODE_MODE_128P_MAC 0x00000003
#define CHIPMODE_MODE_128P_DBG 0x00000002
#define CHIPMODE_MODE_128P_PHY 0x00000000
-/* Chip full mask revision. */
-#define CHIPMODE_REVFM(x) ((x) & 0x0F)
-/* Chip ECO revision. */
-#define CHIPMODE_REVECO(x) (((x) >> 4) & 0x0F)
/* Shadow status base address high/low. */
#define JME_SHBASE_ADDR_HI 0x48
diff -r c4263591737a -r 7f413d568733 sys/dev/pci/xhci_pci.c
--- a/sys/dev/pci/xhci_pci.c Thu Nov 14 09:11:35 2019 +0000
+++ b/sys/dev/pci/xhci_pci.c Thu Nov 14 09:15:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci_pci.c,v 1.22 2019/11/14 09:11:35 msaitoh Exp $ */
+/* $NetBSD: xhci_pci.c,v 1.23 2019/11/14 09:15:12 msaitoh Exp $ */
/* OpenBSD: xhci_pci.c,v 1.4 2014/07/12 17:38:51 yuo Exp */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.22 2019/11/14 09:11:35 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.23 2019/11/14 09:15:12 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_xhci_pci.h"
@@ -203,17 +203,10 @@
csr | PCI_COMMAND_MASTER_ENABLE);
/* Allocate and establish the interrupt. */
-#if 0
if (pci_intr_alloc(pa, &psc->sc_pihp, NULL, 0)) {
aprint_error_dev(self, "can't allocate handler\n");
goto fail;
}
-#else
- if (pci_intx_alloc(pa, &psc->sc_pihp)) {
- aprint_error_dev(self, "can't allocate handler\n");
- goto fail;
- }
-#endif
intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf,
sizeof(intrbuf));
psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB,
Home |
Main Index |
Thread Index |
Old Index