voodoo/voodoo2_config.h

32 lines
941 B
C

#pragma once
#include <stddef.h>
#include <stdint.h>
#include "reg.h"
#define PCI__CONFIG__VENDOR_ID (0x00)
#define PCI__CONFIG__DEVICE_ID (0x02)
#define PCI__CONFIG__COMMAND (0x04)
#define PCI__CONFIG__STATUS (0x06)
#define PCI__CONFIG__REVISION_ID (0x08)
#define PCI__CONFIG__CLASS_CODE (0x09)
#define PCI__CONFIG__CACHE_LINE_SIZE (0x0c)
#define PCI__CONFIG__LATENCY_TIMER (0x0d)
#define PCI__CONFIG__HEADER_TYPE (0x0e)
#define PCI__CONFIG__BIST (0x0f)
#define PCI__CONFIG__MEM_BASE_ADDR (0x10)
#define PCI__CONFIG__INTERRUPT_LINE (0x3c)
#define PCI__CONFIG__INTERRUPT_PIN (0x3d)
#define PCI__CONFIG__MIN_GNT (0x3e)
#define PCI__CONFIG__MAX_LAT (0x3f)
#define PCI__CONFIG__INIT_ENABLE (0x40)
#define PCI__CONFIG__BUS_SNOOP0 (0x44)
#define PCI__CONFIG__BUS_SNOOP1 (0x48)
#define PCI__CONFIG__CFG_STATUS (0x4c)
#define PCI__CONFIG__CFG_SCRATCH (0x50)
#define PCI__CONFIG__SI_PROCESS (0x54)
typedef struct voodoo2_config voodoo2_config;