mbgtools-lx
4.2.8
|
Go to the source code of this file.
Data Structures | |
struct | PCI_ASIC_CFG |
Set of PCI ASIC registers which are writeable once after power-up. More... | |
union | PCI_ASIC_REG |
A PCI ASIC register as 32, 16, or 8 bit accessible union. More... | |
union | PCI_ASIC_ADDON_DATA |
The addon-data part of a PCI ASIC. More... | |
struct | PCI_ASIC |
Register layout of a PCI ASIC. More... | |
struct | PCI_ASIC_VERSION_INFO |
A structure holding version information for a specific device. More... | |
Typedefs | |
typedef uint32_t | PCI_ASIC_VERSION |
A data type to hold the PCI ASIC version code. More... | |
typedef uint32_t | PCI_ASIC_FEATURES |
A data type to hold the PCI ASIC feature flags mask. More... | |
#define _convert_asic_version_number | ( | _n | ) | ( ( (_n) < 0x100 ) ? ( (_n) << 8 ) : (_n) ) |
Version number conversion macro.
Handling of the version numbers of the PCI interface chips has changed between the ASICs used for standard PCI and the EPLDs used to configure the PEX8311 chip for a specific device.
This macro can be used to convert both types of version number into the same format so that the version numbers can be handled in the same way
Definition at line 329 of file pci_asic.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), pcps_probe_device(), and setup_device_type_name().
#define _ext extern |
Definition at line 107 of file pci_asic.h.
#define _mbg_swab_asic_features | ( | _p | ) | _mbg_swab32( _p ) |
Definition at line 164 of file pci_asic.h.
#define _mbg_swab_asic_version | ( | _p | ) | _mbg_swab32( _p ) |
Definition at line 153 of file pci_asic.h.
#define _pcps_asic_version_greater_equal | ( | _v, | |
_v_major, | |||
_v_minor | |||
) |
Check whether a version number is correct and matches a required minimum version.
Definition at line 354 of file pci_asic.h.
Referenced by pcps_probe_device().
#define _pcps_asic_version_major | ( | _v | ) | ( ( (_v) >> 8 ) & 0xFF ) |
Extract the major part of an ASIC version number.
Definition at line 339 of file pci_asic.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), pcps_probe_device(), and setup_device_type_name().
#define _pcps_asic_version_minor | ( | _v | ) | ( (_v) & 0xFF ) |
Extract the minor part of an ASIC version number.
Definition at line 346 of file pci_asic.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), and setup_device_type_name().
#define DEFAULT_PCI_ASIC_VERSION_INFO_TABLE |
An initializer for a table of ASIC version information for all known devices.
Definition at line 481 of file pci_asic.h.
#define PCI_ASIC_ADD_ON_IRQF 0x00000001UL |
Bit masks used with PCI_ASIC::control_status.
The IRQ flag for the add-on side is set whenever data is written to the cmd register. It is cleared if the add-on microcontroller writes this bit back to the control_status register. If the bit is set, the add-on signals /ADD_ON_IRQ and ADD_ON_BUSY are asserted.
Definition at line 231 of file pci_asic.h.
#define PCI_ASIC_ADDR_RANGE 0x100U |
PCI address range.
The ASIC's address decoder always decodes 8 bits, so each device must request at least this number of addresses from the PCI BIOS.
Definition at line 257 of file pci_asic.h.
#define PCI_ASIC_BADR0_INIT ( ~( PCI_ASIC_ADDR_RANGE - 1 ) | 0x01 ) |
Definition at line 263 of file pci_asic.h.
#define PCI_ASIC_CFG_GPS169PCI |
Definition at line 273 of file pci_asic.h.
#define PCI_ASIC_CFG_GPS170PCI |
Definition at line 294 of file pci_asic.h.
#define PCI_ASIC_CFG_PCI510 |
Definition at line 266 of file pci_asic.h.
#define PCI_ASIC_CFG_PCI511 |
Definition at line 301 of file pci_asic.h.
#define PCI_ASIC_CFG_TCR167PCI |
Definition at line 287 of file pci_asic.h.
#define PCI_ASIC_CFG_TCR510PCI |
Definition at line 280 of file pci_asic.h.
#define PCI_ASIC_CFG_TCR511PCI |
Definition at line 308 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_FRC511PEX 0x01 |
Definition at line 425 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_GLN180PEX 0x00 |
Definition at line 449 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_GNS181PEX 0x00 |
Definition at line 452 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_GPS170PEX 0x05 |
Definition at line 405 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_GPS180PEX 0x06 |
Definition at line 433 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_PEX511 0x04 |
ASIC minor version definitions.
The minor number increases when a new EPLD image is released. At least EPLD images with the defined "required minor" numbers should be installed for proper operation. The "current minor" numbers can be used to check if a newer EPLD image is available.
Definition at line 399 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_PTP270PEX 0x06 |
Definition at line 416 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_PZF180PEX 0x01 |
Definition at line 445 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_TCR170PEX 0x03 |
Definition at line 428 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_TCR180PEX 0x00 |
Definition at line 442 of file pci_asic.h.
#define PCI_ASIC_CURRENT_MINOR_TCR511PEX 0x04 |
Definition at line 411 of file pci_asic.h.
#define PCI_ASIC_ENH_HRT_MINOR_GPS170PEX 0x05 |
Definition at line 407 of file pci_asic.h.
#define PCI_ASIC_FIX_EE_ACCESS_TCR170PEX 0x02 |
Definition at line 430 of file pci_asic.h.
#define PCI_ASIC_FIX_FO_IN_LEVEL_TCR170PEX 0x03 |
Definition at line 431 of file pci_asic.h.
#define PCI_ASIC_FIX_HRT_MINOR_GPS170PEX 0x04 |
Definition at line 408 of file pci_asic.h.
#define PCI_ASIC_FIX_HRT_MINOR_PEX511 0x04 |
Definition at line 401 of file pci_asic.h.
#define PCI_ASIC_FIX_IRQ_MINOR_GPS170PEX 0x03 |
Definition at line 409 of file pci_asic.h.
Referenced by pcps_probe_device().
#define PCI_ASIC_FIX_IRQ_MINOR_PEX511 0x03 |
Definition at line 402 of file pci_asic.h.
Referenced by pcps_probe_device().
#define PCI_ASIC_FIX_IRQ_MINOR_TCR511PEX 0x03 |
Definition at line 414 of file pci_asic.h.
Referenced by pcps_probe_device().
#define PCI_ASIC_HAS_MM_IO 0x0001 |
Bit masks used with PCI_ASIC_FEATURES.
The device supports memory mapped I/O
Definition at line 175 of file pci_asic.h.
Referenced by ioctl_switch(), pcps_probe_device(), and setup_asic_features().
#define PCI_ASIC_HAS_PGMB_IRQ 0x0002 |
The device supports programmable interrupts (yet not used)
Definition at line 176 of file pci_asic.h.
#define PCI_ASIC_HR_TIME_MINOR_PEX511 0x02 |
Definition at line 403 of file pci_asic.h.
Referenced by pcps_probe_device().
#define PCI_ASIC_PCI_IRQF 0x00010000UL |
PCI IRQ flag.
The IRQ flag for the PCI bus is set whenever the add-on microcontroller asserts the ASIC's /PCI_IRQ line, or the add-on microcontroller sets this bit to 1. It is cleared if this bit is written back from the PCI side. If the bit is set, an IRQ is asserted on the PCI bus.
Definition at line 242 of file pci_asic.h.
Referenced by pcps_probe_device().
#define PCI_ASIC_REQUIRED_MINOR_FRC511PEX 0x01 |
Definition at line 426 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_GLN180PEX 0x00 |
Definition at line 450 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_GNS181PEX 0x00 |
Definition at line 453 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_GPS170PEX 0x03 |
Definition at line 406 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_GPS180PEX 0x01 |
Definition at line 434 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_PEX511 0x03 |
Definition at line 400 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_PTP270PEX 0x01 |
Definition at line 417 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_PZF180PEX 0x00 |
Definition at line 446 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_TCR170PEX 0x02 |
Definition at line 429 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_TCR180PEX 0x00 |
Definition at line 443 of file pci_asic.h.
#define PCI_ASIC_REQUIRED_MINOR_TCR511PEX 0x03 |
Definition at line 412 of file pci_asic.h.
#define PCPS_ASIC_STR_FMT "%u.%02X" |
Definition at line 334 of file pci_asic.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), and setup_device_type_name().
#define PCPS_DEV_CLASS_CODE 0x08800000UL |
Definition at line 262 of file pci_asic.h.
typedef uint32_t PCI_ASIC_FEATURES |
A data type to hold the PCI ASIC feature flags mask.
Definition at line 162 of file pci_asic.h.
typedef uint32_t PCI_ASIC_VERSION |
A data type to hold the PCI ASIC version code.
Definition at line 151 of file pci_asic.h.
ASIC major version numbers.
Definition at line 367 of file pci_asic.h.