/** * struct chameleon_fpga_header * * @revision: Revison of Chameleon table in FPGA * @model: Chameleon table model ASCII char * @minor: Revision minor * @bus_type: Bus type (usually %CHAMELEON_BUS_WISHBONE) * @magic: Chameleon header magic number (0xabce for version 2) * @reserved: Reserved * @filename: Filename of FPGA bitstream
*/ struct chameleon_fpga_header {
u8 revision; char model;
u8 minor;
u8 bus_type;
u16 magic;
u16 reserved; /* This one has no '\0' at the end!!! */ char filename[CHAMELEON_FILENAME_LEN];
} __packed; #define HEADER_MAGIC_OFFSET 0x4
/** * struct chameleon_gdd - Chameleon General Device Descriptor * * @irq: the position in the FPGA's IRQ controller vector * @rev: the revision of the variant's implementation * @var: the variant of the IP core * @dev: the device the IP core is * @dtype: device descriptor type * @bar: BAR offset that must be added to module offset * @inst: the instance number of the device, 0 is first instance * @group: the group the device belongs to (0 = no group) * @reserved: reserved * @offset: beginning of the address window of desired module * @size: size of the module's address window
*/ struct chameleon_gdd {
__le32 reg1;
__le32 reg2;
__le32 offset;
__le32 size;
/** * struct chameleon_bdd - Chameleon Bridge Device Descriptor * * @irq: the position in the FPGA's IRQ controller vector * @rev: the revision of the variant's implementation * @var: the variant of the IP core * @dev: the device the IP core is * @dtype: device descriptor type * @bar: BAR offset that must be added to module offset * @inst: the instance number of the device, 0 is first instance * @dbar: destination bar from the bus _behind_ the bridge * @chamoff: offset within the BAR of the source bus * @offset: * @size:
*/ struct chameleon_bdd { unsignedint irq:6; unsignedint rev:6; unsignedint var:6; unsignedint dev:10; unsignedint dtype:4; unsignedint bar:3; unsignedint inst:6; unsignedint dbar:3; unsignedint group:6; unsignedint reserved:14;
u32 chamoff;
u32 offset;
u32 size;
} __packed;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.