mbgtools-lx  4.2.8
pci_asic.h File Reference
#include <words.h>
#include <use_pack.h>

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...
 

Macros

#define _ext   extern
 
#define _mbg_swab_asic_version(_p)   _mbg_swab32( _p )
 
#define _mbg_swab_asic_features(_p)   _mbg_swab32( _p )
 
#define PCI_ASIC_ADDR_RANGE   0x100U
 PCI address range. More...
 
#define PCPS_DEV_CLASS_CODE   0x08800000UL
 
#define PCI_ASIC_BADR0_INIT   ( ~( PCI_ASIC_ADDR_RANGE - 1 ) | 0x01 )
 
#define PCI_ASIC_CFG_PCI510
 
#define PCI_ASIC_CFG_GPS169PCI
 
#define PCI_ASIC_CFG_TCR510PCI
 
#define PCI_ASIC_CFG_TCR167PCI
 
#define PCI_ASIC_CFG_GPS170PCI
 
#define PCI_ASIC_CFG_PCI511
 
#define PCI_ASIC_CFG_TCR511PCI
 
#define _convert_asic_version_number(_n)   ( ( (_n) < 0x100 ) ? ( (_n) << 8 ) : (_n) )
 Version number conversion macro. More...
 
#define PCPS_ASIC_STR_FMT   "%u.%02X"
 
#define _pcps_asic_version_major(_v)   ( ( (_v) >> 8 ) & 0xFF )
 Extract the major part of an ASIC version number. More...
 
#define _pcps_asic_version_minor(_v)   ( (_v) & 0xFF )
 Extract the minor part of an ASIC version number. More...
 
#define _pcps_asic_version_greater_equal(_v, _v_major, _v_minor)
 Check whether a version number is correct and matches a required minimum version. More...
 
#define DEFAULT_PCI_ASIC_VERSION_INFO_TABLE
 An initializer for a table of ASIC version information for all known devices. More...
 
#define PCI_ASIC_HAS_MM_IO   0x0001
 Bit masks used with PCI_ASIC_FEATURES. More...
 
#define PCI_ASIC_HAS_PGMB_IRQ   0x0002
 The device supports programmable interrupts (yet not used) More...
 
#define PCI_ASIC_ADD_ON_IRQF   0x00000001UL
 Bit masks used with PCI_ASIC::control_status. More...
 
#define PCI_ASIC_PCI_IRQF   0x00010000UL
 PCI IRQ flag. More...
 
#define PCI_ASIC_CURRENT_MINOR_PEX511   0x04
 ASIC minor version definitions. More...
 
#define PCI_ASIC_REQUIRED_MINOR_PEX511   0x03
 
#define PCI_ASIC_FIX_HRT_MINOR_PEX511   0x04
 
#define PCI_ASIC_FIX_IRQ_MINOR_PEX511   0x03
 
#define PCI_ASIC_HR_TIME_MINOR_PEX511   0x02
 
#define PCI_ASIC_CURRENT_MINOR_GPS170PEX   0x05
 
#define PCI_ASIC_REQUIRED_MINOR_GPS170PEX   0x03
 
#define PCI_ASIC_ENH_HRT_MINOR_GPS170PEX   0x05
 
#define PCI_ASIC_FIX_HRT_MINOR_GPS170PEX   0x04
 
#define PCI_ASIC_FIX_IRQ_MINOR_GPS170PEX   0x03
 
#define PCI_ASIC_CURRENT_MINOR_TCR511PEX   0x04
 
#define PCI_ASIC_REQUIRED_MINOR_TCR511PEX   0x03
 
#define PCI_ASIC_FIX_IRQ_MINOR_TCR511PEX   0x03
 
#define PCI_ASIC_CURRENT_MINOR_PTP270PEX   0x06
 
#define PCI_ASIC_REQUIRED_MINOR_PTP270PEX   0x01
 
#define PCI_ASIC_CURRENT_MINOR_FRC511PEX   0x01
 
#define PCI_ASIC_REQUIRED_MINOR_FRC511PEX   0x01
 
#define PCI_ASIC_CURRENT_MINOR_TCR170PEX   0x03
 
#define PCI_ASIC_REQUIRED_MINOR_TCR170PEX   0x02
 
#define PCI_ASIC_FIX_EE_ACCESS_TCR170PEX   0x02
 
#define PCI_ASIC_FIX_FO_IN_LEVEL_TCR170PEX   0x03
 
#define PCI_ASIC_CURRENT_MINOR_GPS180PEX   0x06
 
#define PCI_ASIC_REQUIRED_MINOR_GPS180PEX   0x01
 
#define PCI_ASIC_CURRENT_MINOR_TCR180PEX   0x00
 
#define PCI_ASIC_REQUIRED_MINOR_TCR180PEX   0x00
 
#define PCI_ASIC_CURRENT_MINOR_PZF180PEX   0x01
 
#define PCI_ASIC_REQUIRED_MINOR_PZF180PEX   0x00
 
#define PCI_ASIC_CURRENT_MINOR_GLN180PEX   0x00
 
#define PCI_ASIC_REQUIRED_MINOR_GLN180PEX   0x00
 
#define PCI_ASIC_CURRENT_MINOR_GNS181PEX   0x00
 
#define PCI_ASIC_REQUIRED_MINOR_GNS181PEX   0x00
 

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...
 

Enumerations

enum  PCI_ASIC_MAJOR_VERSION_NUMBERS {
  PCI_ASIC_MAJOR_PCI_0, PCI_ASIC_MAJOR_PCI_1, PCI_ASIC_MAJOR_PEX511, PCI_ASIC_MAJOR_GPS170PEX,
  PCI_ASIC_MAJOR_TCR511PEX, PCI_ASIC_MAJOR_PTP270PEX, PCI_ASIC_MAJOR_FRC511PEX, PCI_ASIC_MAJOR_TCR170PEX,
  PCI_ASIC_MAJOR_GPS180PEX, PCI_ASIC_MAJOR_TCR180PEX, PCI_ASIC_MAJOR_PZF180PEX, PCI_ASIC_MAJOR_GLN180PEX,
  PCI_ASIC_MAJOR_GNS181PEX, N_PCI_ASIC_MAJOR
}
 ASIC major version numbers. More...
 

Macro Definition Documentation

◆ _convert_asic_version_number

#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().

◆ _ext

#define _ext   extern

Definition at line 107 of file pci_asic.h.

◆ _mbg_swab_asic_features

#define _mbg_swab_asic_features (   _p)    _mbg_swab32( _p )

Definition at line 164 of file pci_asic.h.

◆ _mbg_swab_asic_version

#define _mbg_swab_asic_version (   _p)    _mbg_swab32( _p )

Definition at line 153 of file pci_asic.h.

◆ _pcps_asic_version_greater_equal

#define _pcps_asic_version_greater_equal (   _v,
  _v_major,
  _v_minor 
)
Value:
( \
( _pcps_asic_version_major( _v ) == (_v_major) ) && \
( _pcps_asic_version_minor( _v ) >= (_v_minor) ) \
)
#define _pcps_asic_version_major(_v)
Extract the major part of an ASIC version number.
Definition: pci_asic.h:339
#define _pcps_asic_version_minor(_v)
Extract the minor part of an ASIC version number.
Definition: pci_asic.h:346

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().

◆ _pcps_asic_version_major

#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().

◆ _pcps_asic_version_minor

#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().

◆ DEFAULT_PCI_ASIC_VERSION_INFO_TABLE

#define DEFAULT_PCI_ASIC_VERSION_INFO_TABLE
Value:
{ \
{ 0 } \
}
#define PCI_ASIC_REQUIRED_MINOR_GLN180PEX
Definition: pci_asic.h:450
#define PCI_ASIC_REQUIRED_MINOR_TCR180PEX
Definition: pci_asic.h:443
#define PCI_ASIC_CURRENT_MINOR_TCR170PEX
Definition: pci_asic.h:428
PEX EPLD for PZF180PEX.
Definition: pci_asic.h:379
#define PCI_ASIC_REQUIRED_MINOR_GPS170PEX
Definition: pci_asic.h:406
PEX EPLD for TCR180PEX.
Definition: pci_asic.h:378
PEX EPLD for TCR511PEX.
Definition: pci_asic.h:373
PEX EPLD for GPS170PEX.
Definition: pci_asic.h:372
PEX EPLD for GPS180PEX/GPS180AMC.
Definition: pci_asic.h:377
PEX EPLD for GNS181PEX.
Definition: pci_asic.h:381
PEX EPLD for FRC511PEX.
Definition: pci_asic.h:375
#define PCI_ASIC_REQUIRED_MINOR_PTP270PEX
Definition: pci_asic.h:417
#define PCI_ASIC_CURRENT_MINOR_PEX511
ASIC minor version definitions.
Definition: pci_asic.h:399
#define PCI_ASIC_REQUIRED_MINOR_TCR511PEX
Definition: pci_asic.h:412
#define PCI_ASIC_CURRENT_MINOR_GLN180PEX
Definition: pci_asic.h:449
#define PCI_ASIC_CURRENT_MINOR_FRC511PEX
Definition: pci_asic.h:425
#define PCI_ASIC_REQUIRED_MINOR_PZF180PEX
Definition: pci_asic.h:446
#define PCI_ASIC_REQUIRED_MINOR_FRC511PEX
Definition: pci_asic.h:426
#define PCI_ASIC_CURRENT_MINOR_TCR511PEX
Definition: pci_asic.h:411
#define PCI_ASIC_REQUIRED_MINOR_TCR170PEX
Definition: pci_asic.h:429
#define PCI_ASIC_CURRENT_MINOR_PZF180PEX
Definition: pci_asic.h:445
PEX EPLD for GLN180PEX.
Definition: pci_asic.h:380
PEX EPLD for TCR170PEX.
Definition: pci_asic.h:376
#define PCI_ASIC_CURRENT_MINOR_GNS181PEX
Definition: pci_asic.h:452
#define PCI_ASIC_CURRENT_MINOR_GPS180PEX
Definition: pci_asic.h:433
#define PCI_ASIC_REQUIRED_MINOR_PEX511
Definition: pci_asic.h:400
PEX EPLD for PTP270PEX.
Definition: pci_asic.h:374
#define PCI_ASIC_REQUIRED_MINOR_GNS181PEX
Definition: pci_asic.h:453
#define PCI_ASIC_CURRENT_MINOR_TCR180PEX
Definition: pci_asic.h:442
#define PCI_ASIC_CURRENT_MINOR_PTP270PEX
Definition: pci_asic.h:416
#define PCI_ASIC_CURRENT_MINOR_GPS170PEX
Definition: pci_asic.h:405
PEX EPLD for PEX511.
Definition: pci_asic.h:371
#define PCI_ASIC_REQUIRED_MINOR_GPS180PEX
Definition: pci_asic.h:434

An initializer for a table of ASIC version information for all known devices.

Note
GPS180AMC uses the same ASIC as GPS180PEX
See also
PCI_ASIC_VERSION_INFO

Definition at line 481 of file pci_asic.h.

◆ PCI_ASIC_ADD_ON_IRQF

#define PCI_ASIC_ADD_ON_IRQF   0x00000001UL

Bit masks used with PCI_ASIC::control_status.

See also
PCI_ASIC

Add-on IRQ flag

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.

◆ PCI_ASIC_ADDR_RANGE

#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.

◆ PCI_ASIC_BADR0_INIT

#define PCI_ASIC_BADR0_INIT   ( ~( PCI_ASIC_ADDR_RANGE - 1 ) | 0x01 )

Definition at line 263 of file pci_asic.h.

◆ PCI_ASIC_CFG_GPS169PCI

#define PCI_ASIC_CFG_GPS169PCI
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_GPS169PCI ) \
}
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263
#define PCI_DEV_GPS169PCI
Definition: pcpsdefs.h:393

Definition at line 273 of file pci_asic.h.

◆ PCI_ASIC_CFG_GPS170PCI

#define PCI_ASIC_CFG_GPS170PCI
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_GPS170PCI ) \
}
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263
#define PCI_DEV_GPS170PCI
Definition: pcpsdefs.h:394

Definition at line 294 of file pci_asic.h.

◆ PCI_ASIC_CFG_PCI510

#define PCI_ASIC_CFG_PCI510
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_PCI510 ) \
}
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263
#define PCI_DEV_PCI510
Definition: pcpsdefs.h:386

Definition at line 266 of file pci_asic.h.

◆ PCI_ASIC_CFG_PCI511

#define PCI_ASIC_CFG_PCI511
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_PCI511 ) \
}
#define PCI_DEV_PCI511
Definition: pcpsdefs.h:387
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263

Definition at line 301 of file pci_asic.h.

◆ PCI_ASIC_CFG_TCR167PCI

#define PCI_ASIC_CFG_TCR167PCI
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_TCR167PCI ) \
}
#define PCI_DEV_TCR167PCI
Definition: pcpsdefs.h:402
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263

Definition at line 287 of file pci_asic.h.

◆ PCI_ASIC_CFG_TCR510PCI

#define PCI_ASIC_CFG_TCR510PCI
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_TCR510PCI ) \
}
#define PCI_DEV_TCR510PCI
Definition: pcpsdefs.h:401
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263

Definition at line 280 of file pci_asic.h.

◆ PCI_ASIC_CFG_TCR511PCI

#define PCI_ASIC_CFG_TCR511PCI
Value:
{ \
_hilo_32( PCPS_DEV_CLASS_CODE ), \
_hilo_16( PCI_ASIC_BADR0_INIT ), \
_hilo_16( PCI_DEV_TCR511PCI ) \
}
#define PCPS_DEV_CLASS_CODE
Definition: pci_asic.h:262
#define PCI_ASIC_BADR0_INIT
Definition: pci_asic.h:263
#define PCI_DEV_TCR511PCI
Definition: pcpsdefs.h:403

Definition at line 308 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_FRC511PEX

#define PCI_ASIC_CURRENT_MINOR_FRC511PEX   0x01

Definition at line 425 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_GLN180PEX

#define PCI_ASIC_CURRENT_MINOR_GLN180PEX   0x00

Definition at line 449 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_GNS181PEX

#define PCI_ASIC_CURRENT_MINOR_GNS181PEX   0x00

Definition at line 452 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_GPS170PEX

#define PCI_ASIC_CURRENT_MINOR_GPS170PEX   0x05

Definition at line 405 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_GPS180PEX

#define PCI_ASIC_CURRENT_MINOR_GPS180PEX   0x06

Definition at line 433 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_PEX511

#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.

See also
PCI_ASIC_MAJOR_VERSION_NUMBERS

Definition at line 399 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_PTP270PEX

#define PCI_ASIC_CURRENT_MINOR_PTP270PEX   0x06

Definition at line 416 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_PZF180PEX

#define PCI_ASIC_CURRENT_MINOR_PZF180PEX   0x01

Definition at line 445 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_TCR170PEX

#define PCI_ASIC_CURRENT_MINOR_TCR170PEX   0x03

Definition at line 428 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_TCR180PEX

#define PCI_ASIC_CURRENT_MINOR_TCR180PEX   0x00

Definition at line 442 of file pci_asic.h.

◆ PCI_ASIC_CURRENT_MINOR_TCR511PEX

#define PCI_ASIC_CURRENT_MINOR_TCR511PEX   0x04

Definition at line 411 of file pci_asic.h.

◆ PCI_ASIC_ENH_HRT_MINOR_GPS170PEX

#define PCI_ASIC_ENH_HRT_MINOR_GPS170PEX   0x05

Definition at line 407 of file pci_asic.h.

◆ PCI_ASIC_FIX_EE_ACCESS_TCR170PEX

#define PCI_ASIC_FIX_EE_ACCESS_TCR170PEX   0x02

Definition at line 430 of file pci_asic.h.

◆ PCI_ASIC_FIX_FO_IN_LEVEL_TCR170PEX

#define PCI_ASIC_FIX_FO_IN_LEVEL_TCR170PEX   0x03

Definition at line 431 of file pci_asic.h.

◆ PCI_ASIC_FIX_HRT_MINOR_GPS170PEX

#define PCI_ASIC_FIX_HRT_MINOR_GPS170PEX   0x04

Definition at line 408 of file pci_asic.h.

◆ PCI_ASIC_FIX_HRT_MINOR_PEX511

#define PCI_ASIC_FIX_HRT_MINOR_PEX511   0x04

Definition at line 401 of file pci_asic.h.

◆ PCI_ASIC_FIX_IRQ_MINOR_GPS170PEX

#define PCI_ASIC_FIX_IRQ_MINOR_GPS170PEX   0x03

Definition at line 409 of file pci_asic.h.

Referenced by pcps_probe_device().

◆ PCI_ASIC_FIX_IRQ_MINOR_PEX511

#define PCI_ASIC_FIX_IRQ_MINOR_PEX511   0x03

Definition at line 402 of file pci_asic.h.

Referenced by pcps_probe_device().

◆ PCI_ASIC_FIX_IRQ_MINOR_TCR511PEX

#define PCI_ASIC_FIX_IRQ_MINOR_TCR511PEX   0x03

Definition at line 414 of file pci_asic.h.

Referenced by pcps_probe_device().

◆ PCI_ASIC_HAS_MM_IO

#define PCI_ASIC_HAS_MM_IO   0x0001

Bit masks used with PCI_ASIC_FEATURES.

See also
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().

◆ PCI_ASIC_HAS_PGMB_IRQ

#define PCI_ASIC_HAS_PGMB_IRQ   0x0002

The device supports programmable interrupts (yet not used)

Definition at line 176 of file pci_asic.h.

◆ PCI_ASIC_HR_TIME_MINOR_PEX511

#define PCI_ASIC_HR_TIME_MINOR_PEX511   0x02

Definition at line 403 of file pci_asic.h.

Referenced by pcps_probe_device().

◆ PCI_ASIC_PCI_IRQF

#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().

◆ PCI_ASIC_REQUIRED_MINOR_FRC511PEX

#define PCI_ASIC_REQUIRED_MINOR_FRC511PEX   0x01

Definition at line 426 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_GLN180PEX

#define PCI_ASIC_REQUIRED_MINOR_GLN180PEX   0x00

Definition at line 450 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_GNS181PEX

#define PCI_ASIC_REQUIRED_MINOR_GNS181PEX   0x00

Definition at line 453 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_GPS170PEX

#define PCI_ASIC_REQUIRED_MINOR_GPS170PEX   0x03

Definition at line 406 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_GPS180PEX

#define PCI_ASIC_REQUIRED_MINOR_GPS180PEX   0x01

Definition at line 434 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_PEX511

#define PCI_ASIC_REQUIRED_MINOR_PEX511   0x03

Definition at line 400 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_PTP270PEX

#define PCI_ASIC_REQUIRED_MINOR_PTP270PEX   0x01

Definition at line 417 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_PZF180PEX

#define PCI_ASIC_REQUIRED_MINOR_PZF180PEX   0x00

Definition at line 446 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_TCR170PEX

#define PCI_ASIC_REQUIRED_MINOR_TCR170PEX   0x02

Definition at line 429 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_TCR180PEX

#define PCI_ASIC_REQUIRED_MINOR_TCR180PEX   0x00

Definition at line 443 of file pci_asic.h.

◆ PCI_ASIC_REQUIRED_MINOR_TCR511PEX

#define PCI_ASIC_REQUIRED_MINOR_TCR511PEX   0x03

Definition at line 412 of file pci_asic.h.

◆ PCPS_ASIC_STR_FMT

#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().

◆ PCPS_DEV_CLASS_CODE

#define PCPS_DEV_CLASS_CODE   0x08800000UL

Definition at line 262 of file pci_asic.h.

Typedef Documentation

◆ PCI_ASIC_FEATURES

typedef uint32_t PCI_ASIC_FEATURES

A data type to hold the PCI ASIC feature flags mask.

See also
PCI_ASIC_FEATURE_MASKS

Definition at line 162 of file pci_asic.h.

◆ PCI_ASIC_VERSION

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.

Enumeration Type Documentation

◆ PCI_ASIC_MAJOR_VERSION_NUMBERS

ASIC major version numbers.

See also
PCI_ASIC_MINOR_VERSION_NUMBERS
Enumerator
PCI_ASIC_MAJOR_PCI_0 

PCI ASIC with CRC bug.

PCI_ASIC_MAJOR_PCI_1 

fixed version of PCI ASIC

PCI_ASIC_MAJOR_PEX511 

PEX EPLD for PEX511.

PCI_ASIC_MAJOR_GPS170PEX 

PEX EPLD for GPS170PEX.

PCI_ASIC_MAJOR_TCR511PEX 

PEX EPLD for TCR511PEX.

PCI_ASIC_MAJOR_PTP270PEX 

PEX EPLD for PTP270PEX.

PCI_ASIC_MAJOR_FRC511PEX 

PEX EPLD for FRC511PEX.

PCI_ASIC_MAJOR_TCR170PEX 

PEX EPLD for TCR170PEX.

PCI_ASIC_MAJOR_GPS180PEX 

PEX EPLD for GPS180PEX/GPS180AMC.

PCI_ASIC_MAJOR_TCR180PEX 

PEX EPLD for TCR180PEX.

PCI_ASIC_MAJOR_PZF180PEX 

PEX EPLD for PZF180PEX.

PCI_ASIC_MAJOR_GLN180PEX 

PEX EPLD for GLN180PEX.

PCI_ASIC_MAJOR_GNS181PEX 

PEX EPLD for GNS181PEX.

N_PCI_ASIC_MAJOR 

the number of known codes

Definition at line 367 of file pci_asic.h.