mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
cadence_gem: Add support for screening
The Cadence GEM hardware allows incoming data to be 'screened' based on some register values. Add support for these screens. We also need to increase the max regs to avoid compilation failures. These new registers are implemented in the next patch. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 73e69a8ad9fa2763e9f68f71eaf2469dd5744fcc.1469727764.git.alistair.francis@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2bf57f73e3
commit
e8e4994313
2 changed files with 174 additions and 3 deletions
|
@ -30,9 +30,11 @@
|
|||
#include "net/net.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define CADENCE_GEM_MAXREG (0x00000640/4) /* Last valid GEM address */
|
||||
#define CADENCE_GEM_MAXREG (0x00000800 / 4) /* Last valid GEM address */
|
||||
|
||||
#define MAX_PRIORITY_QUEUES 8
|
||||
#define MAX_TYPE1_SCREENERS 16
|
||||
#define MAX_TYPE2_SCREENERS 16
|
||||
|
||||
typedef struct CadenceGEMState {
|
||||
/*< private >*/
|
||||
|
@ -46,6 +48,8 @@ typedef struct CadenceGEMState {
|
|||
|
||||
/* Static properties */
|
||||
uint8_t num_priority_queues;
|
||||
uint8_t num_type1_screeners;
|
||||
uint8_t num_type2_screeners;
|
||||
|
||||
/* GEM registers backing store */
|
||||
uint32_t regs[CADENCE_GEM_MAXREG];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue