Date: Wed, 5 Sep 2012 19:01:39 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240150 - head/sys/dev/pci Message-ID: <201209051901.q85J1d7u086503@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gavin Date: Wed Sep 5 19:01:39 2012 New Revision: 240150 URL: http://svn.freebsd.org/changeset/base/240150 Log: Add #defines for the bits in the PCI Express SLOT registers. Names have been chosen based on the bit names in the PCI Express Base Specification 3.0, and to match the predominant style of the existing bit definitions. MFC after: 1 week Modified: head/sys/dev/pci/pcireg.h Modified: head/sys/dev/pci/pcireg.h ============================================================================== --- head/sys/dev/pci/pcireg.h Wed Sep 5 18:55:35 2012 (r240149) +++ head/sys/dev/pci/pcireg.h Wed Sep 5 19:01:39 2012 (r240150) @@ -663,8 +663,40 @@ #define PCIM_LINK_STA_TRAINING 0x0800 #define PCIM_LINK_STA_SLOT_CLOCK 0x1000 #define PCIR_EXPRESS_SLOT_CAP 0x14 +#define PCIM_EXP_SLOT_CAP_APB 0x00000001 +#define PCIM_EXP_SLOT_CAP_PCP 0x00000002 +#define PCIM_EXP_SLOT_CAP_MRLSP 0x00000004 +#define PCIM_EXP_SLOT_CAP_AIP 0x00000008 +#define PCIM_EXP_SLOT_CAP_PIP 0x00000010 +#define PCIM_EXP_SLOT_CAP_HPS 0x00000020 +#define PCIM_EXP_SLOT_CAP_HPC 0x00000040 +#define PCIM_EXP_SLOT_CAP_SPLV 0x00007f80 +#define PCIM_EXP_SLOT_CAP_SPLS 0x00018000 +#define PCIM_EXP_SLOT_CAP_EIP 0x00020000 +#define PCIM_EXP_SLOT_CAP_NCCS 0x00040000 +#define PCIM_EXP_SLOT_CAP_PSN 0xfff80000 #define PCIR_EXPRESS_SLOT_CTL 0x18 +#define PCIM_EXP_SLOT_CTL_ABPE 0x0001 +#define PCIM_EXP_SLOT_CTL_PFDE 0x0002 +#define PCIM_EXP_SLOT_CTL_MRLSCE 0x0004 +#define PCIM_EXP_SLOT_CTL_PDCE 0x0008 +#define PCIM_EXP_SLOT_CTL_CCIE 0x0010 +#define PCIM_EXP_SLOT_CTL_HPIE 0x0020 +#define PCIM_EXP_SLOT_CTL_AIC 0x00c0 +#define PCIM_EXP_SLOT_CTL_PIC 0x0300 +#define PCIM_EXP_SLOT_CTL_PCC 0x0400 +#define PCIM_EXP_SLOT_CTL_EIC 0x0800 +#define PCIM_EXP_SLOT_CTL_DLLSCE 0x1000 #define PCIR_EXPRESS_SLOT_STA 0x1a +#define PCIM_EXP_SLOT_STA_ABP 0x0001 +#define PCIM_EXP_SLOT_STA_PFD 0x0002 +#define PCIM_EXP_SLOT_STA_MRLSC 0x0004 +#define PCIM_EXP_SLOT_STA_PDC 0x0008 +#define PCIM_EXP_SLOT_STA_CC 0x0010 +#define PCIM_EXP_SLOT_STA_MRLSS 0x0020 +#define PCIM_EXP_SLOT_STA_PDS 0x0040 +#define PCIM_EXP_SLOT_STA_EIS 0x0080 +#define PCIM_EXP_SLOT_STA_DLLSC 0x0100 #define PCIR_EXPRESS_ROOT_CTL 0x1c #define PCIR_EXPRESS_ROOT_STA 0x20 #define PCIR_EXPRESS_DEVICE_CTL2 40
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209051901.q85J1d7u086503>