require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&NOFN_BAR0_REGS)) {
    sub NOFN_BAR0_REGS () {	0x10;}
}
unless(defined(&NOFN_BAR1)) {
    sub NOFN_BAR1 () {	0x14;}
}
unless(defined(&NOFN_BAR2)) {
    sub NOFN_BAR2 () {	0x18;}
}
unless(defined(&NOFN_BAR3_PK)) {
    sub NOFN_BAR3_PK () {	0x1c;}
}
unless(defined(&NOFN_MIPS_PCI_BASE_0)) {
    sub NOFN_MIPS_PCI_BASE_0 () {	0x;}
}
unless(defined(&NOFN_MIPS_PCI_WIN_SZ_0)) {
    sub NOFN_MIPS_PCI_WIN_SZ_0 () {	0x8;}
}
unless(defined(&NOFN_PCI_XLAT_0)) {
    sub NOFN_PCI_XLAT_0 () {	0x10;}
}
unless(defined(&NOFN_MIPS_PCI_BASE_1)) {
    sub NOFN_MIPS_PCI_BASE_1 () {	0x18;}
}
unless(defined(&NOFN_MIPS_PCI_WIN_SZ_1)) {
    sub NOFN_MIPS_PCI_WIN_SZ_1 () {	0x20;}
}
unless(defined(&NOFN_PCI_XLAT_1)) {
    sub NOFN_PCI_XLAT_1 () {	0x28;}
}
unless(defined(&NOFN_MIPS_SDRAM_BASE)) {
    sub NOFN_MIPS_SDRAM_BASE () {	0x30;}
}
unless(defined(&NOFN_MIPS_SDRAM_SZ)) {
    sub NOFN_MIPS_SDRAM_SZ () {	0x38;}
}
unless(defined(&NOFN_PCI_BARM0_SHADOW)) {
    sub NOFN_PCI_BARM0_SHADOW () {	0x40;}
}
unless(defined(&NOFN_PCI_BARM1_SHADOW)) {
    sub NOFN_PCI_BARM1_SHADOW () {	0x50;}
}
unless(defined(&NOFN_PCI_BARM_SZ)) {
    sub NOFN_PCI_BARM_SZ () {	0x60;}
}
unless(defined(&NOFN_XPARNT_MEM_EN)) {
    sub NOFN_XPARNT_MEM_EN () {	0x68;}
}
unless(defined(&NOFN_PCI_BARR_SHADOW)) {
    sub NOFN_PCI_BARR_SHADOW () {	0x70;}
}
unless(defined(&NOFN_MIPS_REG_BASE)) {
    sub NOFN_MIPS_REG_BASE () {	0x78;}
}
unless(defined(&NOFN_MAX_FREE_IDX)) {
    sub NOFN_MAX_FREE_IDX () {	0x80;}
}
unless(defined(&NOFN_TRAP_IN_Q)) {
    sub NOFN_TRAP_IN_Q () {	0x90;}
}
unless(defined(&NOFN_OUT_CMPLT)) {
    sub NOFN_OUT_CMPLT () {	0xa0;}
}
unless(defined(&NOFN_TRAP_OUT_Q)) {
    sub NOFN_TRAP_OUT_Q () {	0xa8;}
}
unless(defined(&NOFN_CHOKE_CORE_IN_Q)) {
    sub NOFN_CHOKE_CORE_IN_Q () {	0xb0;}
}
unless(defined(&NOFN_DONE_BITMAP)) {
    sub NOFN_DONE_BITMAP () {	0xb8;}
}
unless(defined(&NOFN_HEAD_DESC_PTR)) {
    sub NOFN_HEAD_DESC_PTR () {	0xc0;}
}
unless(defined(&NOFN_TAIL_DESC_PTR)) {
    sub NOFN_TAIL_DESC_PTR () {	0xc8;}
}
unless(defined(&NOFN_RSLT_POST_ADR)) {
    sub NOFN_RSLT_POST_ADR () {	0xd0;}
}
unless(defined(&NOFN_SM_CTX_BASE)) {
    sub NOFN_SM_CTX_BASE () {	0xd8;}
}
unless(defined(&NOFN_DESC_BASE)) {
    sub NOFN_DESC_BASE () {	0xe8;}
}
unless(defined(&NOFN_LG_CTX_BASE)) {
    sub NOFN_LG_CTX_BASE () {	0xe0;}
}
unless(defined(&NOFN_SESSION_NUM_MASK)) {
    sub NOFN_SESSION_NUM_MASK () {	0xf0;}
}
unless(defined(&NOFN_HOST_MBOX_0)) {
    sub NOFN_HOST_MBOX_0 () {	0xf8;}
}
unless(defined(&NOFN_REVID)) {
    sub NOFN_REVID () {	0x98;}
}
unless(defined(&NOFN_HOST_SIGNAL)) {
    sub NOFN_HOST_SIGNAL () {	0x100;}
}
unless(defined(&NOFN_MIPS_MBOX_0)) {
    sub NOFN_MIPS_MBOX_0 () {	0x108;}
}
unless(defined(&NOFN_MIPS_SIGNAL)) {
    sub NOFN_MIPS_SIGNAL () {	0x110;}
}
unless(defined(&NOFN_SPINLOCK_0)) {
    sub NOFN_SPINLOCK_0 () {	0x118;}
}
unless(defined(&NOFN_SPINLOCK_1)) {
    sub NOFN_SPINLOCK_1 () {	0x120;}
}
unless(defined(&NOFN_PCI_INT)) {
    sub NOFN_PCI_INT () {	0x130;}
}
unless(defined(&NOFN_PCI_INT_STAT)) {
    sub NOFN_PCI_INT_STAT () {	0x138;}
}
unless(defined(&NOFN_PCI_INT_MASK)) {
    sub NOFN_PCI_INT_MASK () {	0x140;}
}
unless(defined(&NOFN_MIPS_INT)) {
    sub NOFN_MIPS_INT () {	0x148;}
}
unless(defined(&NOFN_MIPS_INT_STAT)) {
    sub NOFN_MIPS_INT_STAT () {	0x150;}
}
unless(defined(&NOFN_SDRAM_CFG)) {
    sub NOFN_SDRAM_CFG () {	0x168;}
}
unless(defined(&NOFN_ENDIAN_CFG)) {
    sub NOFN_ENDIAN_CFG () {	0x170;}
}
unless(defined(&NOFN_EPT)) {
    sub NOFN_EPT () {	0x178;}
}
unless(defined(&NOFN_MIPS_RST)) {
    sub NOFN_MIPS_RST () {	0x180;}
}
unless(defined(&NOFN_EEPROM_DATA_0)) {
    sub NOFN_EEPROM_DATA_0 () {	0x188;}
}
unless(defined(&NOFN_EEPROM_DATA_1)) {
    sub NOFN_EEPROM_DATA_1 () {	0x190;}
}
unless(defined(&NOFN_EEPROM_DATA_2)) {
    sub NOFN_EEPROM_DATA_2 () {	0x198;}
}
unless(defined(&NOFN_EEPROM_DATA_3)) {
    sub NOFN_EEPROM_DATA_3 () {	0x1a0;}
}
unless(defined(&NOFN_CHIP_CFG)) {
    sub NOFN_CHIP_CFG () {	0x1d8;}
}
unless(defined(&NOFN_SCRATCH_0)) {
    sub NOFN_SCRATCH_0 () {	0x1e0;}
}
unless(defined(&NOFN_SCRATCH_1)) {
    sub NOFN_SCRATCH_1 () {	0x1e8;}
}
unless(defined(&NOFN_SCRATCH_2)) {
    sub NOFN_SCRATCH_2 () {	0x1f0;}
}
unless(defined(&NOFN_SCRATCH_3)) {
    sub NOFN_SCRATCH_3 () {	0x1f8;}
}
unless(defined(&NOFN_CMD_RING_CTL)) {
    sub NOFN_CMD_RING_CTL () {	0x200;}
}
unless(defined(&NOFN_CMD_RING_BASE)) {
    sub NOFN_CMD_RING_BASE () {	0x208;}
}
unless(defined(&NOFN_CMD_RING_LEN)) {
    sub NOFN_CMD_RING_LEN () {	0x210;}
}
unless(defined(&NOFN_CMD_RING_HEAD)) {
    sub NOFN_CMD_RING_HEAD () {	0x218;}
}
unless(defined(&NOFN_CMD_RING_TAIL)) {
    sub NOFN_CMD_RING_TAIL () {	0x220;}
}
unless(defined(&NOFN_DST_RING_CTL)) {
    sub NOFN_DST_RING_CTL () {	0x230;}
}
unless(defined(&NOFN_DST_RING_BASE)) {
    sub NOFN_DST_RING_BASE () {	0x238;}
}
unless(defined(&NOFN_DST_RING_LEN)) {
    sub NOFN_DST_RING_LEN () {	0x240;}
}
unless(defined(&NOFN_DST_RING_HEAD)) {
    sub NOFN_DST_RING_HEAD () {	0x248;}
}
unless(defined(&NOFN_DST_RING_TAIL)) {
    sub NOFN_DST_RING_TAIL () {	0x250;}
}
unless(defined(&NOFN_RSLT_RING_CTL)) {
    sub NOFN_RSLT_RING_CTL () {	0x258;}
}
unless(defined(&NOFN_RSLT_RING_BASE)) {
    sub NOFN_RSLT_RING_BASE () {	0x260;}
}
unless(defined(&NOFN_RSLT_RING_LEN)) {
    sub NOFN_RSLT_RING_LEN () {	0x268;}
}
unless(defined(&NOFN_RSLT_RING_HEAD)) {
    sub NOFN_RSLT_RING_HEAD () {	0x270;}
}
unless(defined(&NOFN_RSLT_RING_TAIL)) {
    sub NOFN_RSLT_RING_TAIL () {	0x278;}
}
unless(defined(&NOFN_SRC_RING_CTL)) {
    sub NOFN_SRC_RING_CTL () {	0x288;}
}
unless(defined(&NOFN_SRC_RING_BASE)) {
    sub NOFN_SRC_RING_BASE () {	0x290;}
}
unless(defined(&NOFN_SRC_RING_LEN)) {
    sub NOFN_SRC_RING_LEN () {	0x298;}
}
unless(defined(&NOFN_SRC_RING_HEAD)) {
    sub NOFN_SRC_RING_HEAD () {	0x2a0;}
}
unless(defined(&NOFN_SRC_RING_TAIL)) {
    sub NOFN_SRC_RING_TAIL () {	0x2a8;}
}
unless(defined(&NOFN_FREE_RING_CTL)) {
    sub NOFN_FREE_RING_CTL () {	0x2b8;}
}
unless(defined(&NOFN_FREE_RING_BASE)) {
    sub NOFN_FREE_RING_BASE () {	0x2c0;}
}
unless(defined(&NOFN_FREE_RING_LEN)) {
    sub NOFN_FREE_RING_LEN () {	0x2c8;}
}
unless(defined(&NOFN_FREE_RING_HEAD)) {
    sub NOFN_FREE_RING_HEAD () {	0x2d0;}
}
unless(defined(&NOFN_FREE_RING_TAIL)) {
    sub NOFN_FREE_RING_TAIL () {	0x2d8;}
}
unless(defined(&NOFN_ECC_TEST)) {
    sub NOFN_ECC_TEST () {	0x2e0;}
}
unless(defined(&NOFN_ECC_SNGL_ADR)) {
    sub NOFN_ECC_SNGL_ADR () {	0x2e8;}
}
unless(defined(&NOFN_ECC_SNGL_ECC)) {
    sub NOFN_ECC_SNGL_ECC () {	0x2f0;}
}
unless(defined(&NOFN_ECC_SNGL_CNT)) {
    sub NOFN_ECC_SNGL_CNT () {	0x2f8;}
}
unless(defined(&NOFN_ECC_MULTI_ADR)) {
    sub NOFN_ECC_MULTI_ADR () {	0x300;}
}
unless(defined(&NOFN_ECC_MULTI_ECC)) {
    sub NOFN_ECC_MULTI_ECC () {	0x308;}
}
unless(defined(&NOFN_ECC_MULTI_DATAL)) {
    sub NOFN_ECC_MULTI_DATAL () {	0x310;}
}
unless(defined(&NOFN_ECC_MULTI_DATAH)) {
    sub NOFN_ECC_MULTI_DATAH () {	0x318;}
}
unless(defined(&NOFN_MIPS_ERR_ADR)) {
    sub NOFN_MIPS_ERR_ADR () {	0x320;}
}
unless(defined(&NOFN_MIPS_ERR_DATA)) {
    sub NOFN_MIPS_ERR_DATA () {	0x328;}
}
unless(defined(&NOFN_MIPS_ERR_PAR)) {
    sub NOFN_MIPS_ERR_PAR () {	0x330;}
}
unless(defined(&NOFN_MIPS_PAR_TEST)) {
    sub NOFN_MIPS_PAR_TEST () {	0x338;}
}
unless(defined(&NOFN_MIPS_MBOX_1)) {
    sub NOFN_MIPS_MBOX_1 () {	0x340;}
}
unless(defined(&NOFN_MIPS_MBOX_2)) {
    sub NOFN_MIPS_MBOX_2 () {	0x348;}
}
unless(defined(&NOFN_MIPS_MBOX_3)) {
    sub NOFN_MIPS_MBOX_3 () {	0x350;}
}
unless(defined(&NOFN_HOST_MBOX_1)) {
    sub NOFN_HOST_MBOX_1 () {	0x358;}
}
unless(defined(&NOFN_HOST_MBOX_2)) {
    sub NOFN_HOST_MBOX_2 () {	0x360;}
}
unless(defined(&NOFN_HOST_MBOX_3)) {
    sub NOFN_HOST_MBOX_3 () {	0x368;}
}
unless(defined(&NOFN_MIPS_INT_0_MASK)) {
    sub NOFN_MIPS_INT_0_MASK () {	0x400;}
}
unless(defined(&NOFN_MIPS_INT_1_MASK)) {
    sub NOFN_MIPS_INT_1_MASK () {	0x408;}
}
unless(defined(&NOFN_MIPS_INT_2_MASK)) {
    sub NOFN_MIPS_INT_2_MASK () {	0x410;}
}
unless(defined(&NOFN_MIPS_PCI_RD_ERRADR)) {
    sub NOFN_MIPS_PCI_RD_ERRADR () {	0x418;}
}
unless(defined(&NOFN_MIPS_PCI_WR_ERRADR)) {
    sub NOFN_MIPS_PCI_WR_ERRADR () {	0x420;}
}
unless(defined(&NOFN_MIPS_EP0_LMT)) {
    sub NOFN_MIPS_EP0_LMT () {	0x428;}
}
unless(defined(&NOFN_PCI_INIT_ERR_ADR)) {
    sub NOFN_PCI_INIT_ERR_ADR () {	0x430;}
}
unless(defined(&NOFN_ECC_SNGL_DATAL)) {
    sub NOFN_ECC_SNGL_DATAL () {	0x438;}
}
unless(defined(&NOFN_ECC_SNGL_DATAH)) {
    sub NOFN_ECC_SNGL_DATAH () {	0x440;}
}
unless(defined(&NOFN_GPDMA_DATA_0)) {
    sub NOFN_GPDMA_DATA_0 () {	0x480;}
}
unless(defined(&NOFN_GPDMA_DATA_1)) {
    sub NOFN_GPDMA_DATA_1 () {	0x488;}
}
unless(defined(&NOFN_GPDMA_DATA_2)) {
    sub NOFN_GPDMA_DATA_2 () {	0x490;}
}
unless(defined(&NOFN_GPDMA_DATA_3)) {
    sub NOFN_GPDMA_DATA_3 () {	0x498;}
}
unless(defined(&NOFN_GPDMA_DATA_4)) {
    sub NOFN_GPDMA_DATA_4 () {	0x4a0;}
}
unless(defined(&NOFN_GPDMA_DATA_5)) {
    sub NOFN_GPDMA_DATA_5 () {	0x4a8;}
}
unless(defined(&NOFN_GPDMA_DATA_6)) {
    sub NOFN_GPDMA_DATA_6 () {	0x4b0;}
}
unless(defined(&NOFN_GPDMA_DATA_7)) {
    sub NOFN_GPDMA_DATA_7 () {	0x4b8;}
}
unless(defined(&NOFN_GPDMA_DATA_8)) {
    sub NOFN_GPDMA_DATA_8 () {	0x4c0;}
}
unless(defined(&NOFN_GPDMA_DATA_9)) {
    sub NOFN_GPDMA_DATA_9 () {	0x4c8;}
}
unless(defined(&NOFN_GPDMA_DATA_10)) {
    sub NOFN_GPDMA_DATA_10 () {	0x4d0;}
}
unless(defined(&NOFN_GPDMA_DATA_11)) {
    sub NOFN_GPDMA_DATA_11 () {	0x4d8;}
}
unless(defined(&NOFN_GPDMA_DATA_12)) {
    sub NOFN_GPDMA_DATA_12 () {	0x4e0;}
}
unless(defined(&NOFN_GPDMA_DATA_13)) {
    sub NOFN_GPDMA_DATA_13 () {	0x4e8;}
}
unless(defined(&NOFN_GPDMA_DATA_14)) {
    sub NOFN_GPDMA_DATA_14 () {	0x4f0;}
}
unless(defined(&NOFN_GPDMA_DATA_15)) {
    sub NOFN_GPDMA_DATA_15 () {	0x4f8;}
}
unless(defined(&NOFN_GPDMA_CTL)) {
    sub NOFN_GPDMA_CTL () {	0x500;}
}
unless(defined(&NOFN_GPDMA_ADR)) {
    sub NOFN_GPDMA_ADR () {	0x508;}
}
unless(defined(&NOFN_MIPS_PK_BASE)) {
    sub NOFN_MIPS_PK_BASE () {	0x510;}
}
unless(defined(&NOFN_PCI_BAR3_SHADOW)) {
    sub NOFN_PCI_BAR3_SHADOW () {	0x518;}
}
unless(defined(&NOFN_AES_ROUNDS)) {
    sub NOFN_AES_ROUNDS () {	0x520;}
}
unless(defined(&NOFN_MIPS_INIT)) {
    sub NOFN_MIPS_INIT () {	0x530;}
}
unless(defined(&NOFN_MIPS_INIT_CTL)) {
    sub NOFN_MIPS_INIT_CTL () {	0x528;}
}
unless(defined(&NOFN_UART_TX)) {
    sub NOFN_UART_TX () {	0x538;}
}
unless(defined(&NOFN_UART_RX)) {
    sub NOFN_UART_RX () {	0x540;}
}
unless(defined(&NOFN_UART_CLK_LOW)) {
    sub NOFN_UART_CLK_LOW () {	0x548;}
}
unless(defined(&NOFN_UART_CLK_HIGH)) {
    sub NOFN_UART_CLK_HIGH () {	0x550;}
}
unless(defined(&NOFN_UART_STAT)) {
    sub NOFN_UART_STAT () {	0x558;}
}
unless(defined(&NOFN_MIPS_FLASH_BASE)) {
    sub NOFN_MIPS_FLASH_BASE () {	0x560;}
}
unless(defined(&NOFN_MIPS_FLASH_SZ)) {
    sub NOFN_MIPS_FLASH_SZ () {	0x568;}
}
unless(defined(&NOFN_MIPS_FLASH_XLATE)) {
    sub NOFN_MIPS_FLASH_XLATE () {	0x570;}
}
unless(defined(&NOFN_MIPS_SRAM_BASE)) {
    sub NOFN_MIPS_SRAM_BASE () {	0x578;}
}
unless(defined(&NOFN_MIPS_SRAM_SZ)) {
    sub NOFN_MIPS_SRAM_SZ () {	0x580;}
}
unless(defined(&NOFN_MIPS_SRAM_XLATE)) {
    sub NOFN_MIPS_SRAM_XLATE () {	0x588;}
}
unless(defined(&NOFN_MIPS_MEM_LOCK)) {
    sub NOFN_MIPS_MEM_LOCK () {	0x590;}
}
unless(defined(&NOFN_MIPS_SDRAM2_BASE)) {
    sub NOFN_MIPS_SDRAM2_BASE () {	0x598;}
}
unless(defined(&NOFN_MIPS_SDRAM2_SZ)) {
    sub NOFN_MIPS_SDRAM2_SZ () {	0x5a0;}
}
unless(defined(&NOFN_MIPS_EPO2_LMT)) {
    sub NOFN_MIPS_EPO2_LMT () {	0x5a8;}
}
unless(defined(&REVID_7851_1)) {
    sub REVID_7851_1 () {	0x140000;}
}
unless(defined(&REVID_7851_2)) {
    sub REVID_7851_2 () {	0x140001;}
}
unless(defined(&REVID_7814_7854_1)) {
    sub REVID_7814_7854_1 () {	0x140002;}
}
unless(defined(&REVID_8154_1)) {
    sub REVID_8154_1 () {	0x180000;}
}
unless(defined(&REVID_8065_1)) {
    sub REVID_8065_1 () {	0x160000;}
}
unless(defined(&REVID_8165_1)) {
    sub REVID_8165_1 () {	0x170000;}
}
unless(defined(&PCIINTMASK_PK)) {
    sub PCIINTMASK_PK () {	0x80000000;}
}
unless(defined(&PCIINTMASK_RNGRDY)) {
    sub PCIINTMASK_RNGRDY () {	0x40000000;}
}
unless(defined(&PCIINTMASK_MIPSINT)) {
    sub PCIINTMASK_MIPSINT () {	0x80000;}
}
unless(defined(&PCIINTMASK_ERR_OUT)) {
    sub PCIINTMASK_ERR_OUT () {	0x10000;}
}
unless(defined(&PCIINTMASK_ERR_FREE)) {
    sub PCIINTMASK_ERR_FREE () {	0x8000;}
}
unless(defined(&PCIINTMASK_ERR_DEST)) {
    sub PCIINTMASK_ERR_DEST () {	0x4000;}
}
unless(defined(&PCIINTMASK_ERR_RES)) {
    sub PCIINTMASK_ERR_RES () {	0x2000;}
}
unless(defined(&PCIINTMASK_ERR_RESP)) {
    sub PCIINTMASK_ERR_RESP () {	0x1000;}
}
unless(defined(&PCIINTMASK_DESCOVF)) {
    sub PCIINTMASK_DESCOVF () {	0x800;}
}
unless(defined(&PCIINTMASK_RESDONE)) {
    sub PCIINTMASK_RESDONE () {	0x400;}
}
unless(defined(&PCIINTMASK_DESTINV)) {
    sub PCIINTMASK_DESTINV () {	0x200;}
}
unless(defined(&PCIINTMASK_POOLINV)) {
    sub PCIINTMASK_POOLINV () {	0x100;}
}
unless(defined(&PCIINTMASK_ERR_CMD)) {
    sub PCIINTMASK_ERR_CMD () {	0x80;}
}
unless(defined(&PCIINTMASK_ERR_SRC)) {
    sub PCIINTMASK_ERR_SRC () {	0x40;}
}
unless(defined(&PCIINTMASK_ERR_IN)) {
    sub PCIINTMASK_ERR_IN () {	0x20;}
}
unless(defined(&PCIINTMASK_ERR_MULTI)) {
    sub PCIINTMASK_ERR_MULTI () {	0x10;}
}
unless(defined(&PCIINTMASK_MIPSPAR)) {
    sub PCIINTMASK_MIPSPAR () {	0x4;}
}
unless(defined(&PCIINTMASK_MIPSPCI)) {
    sub PCIINTMASK_MIPSPCI () {	0x2;}
}
unless(defined(&PCIINTMASK_FREE_E)) {
    sub PCIINTMASK_FREE_E () {	0x1;}
}
unless(defined(&PCIINTSTAT_PK)) {
    sub PCIINTSTAT_PK () {	0x80000000;}
}
unless(defined(&PCIINTSTAT_RNGRDY)) {
    sub PCIINTSTAT_RNGRDY () {	0x40000000;}
}
unless(defined(&PCIINTSTAT_MIPSINT)) {
    sub PCIINTSTAT_MIPSINT () {	0x80000;}
}
unless(defined(&PCIINTSTAT_ERR_OUT)) {
    sub PCIINTSTAT_ERR_OUT () {	0x10000;}
}
unless(defined(&PCIINTSTAT_ERR_FREE)) {
    sub PCIINTSTAT_ERR_FREE () {	0x8000;}
}
unless(defined(&PCIINTSTAT_ERR_DEST)) {
    sub PCIINTSTAT_ERR_DEST () {	0x4000;}
}
unless(defined(&PCIINTSTAT_ERR_RES)) {
    sub PCIINTSTAT_ERR_RES () {	0x2000;}
}
unless(defined(&PCIINTSTAT_ERR_RESP)) {
    sub PCIINTSTAT_ERR_RESP () {	0x1000;}
}
unless(defined(&PCIINTSTAT_DESCOVF)) {
    sub PCIINTSTAT_DESCOVF () {	0x800;}
}
unless(defined(&PCIINTSTAT_RESDONE)) {
    sub PCIINTSTAT_RESDONE () {	0x400;}
}
unless(defined(&PCIINTSTAT_DESTINV)) {
    sub PCIINTSTAT_DESTINV () {	0x200;}
}
unless(defined(&PCIINTSTAT_POOLINV)) {
    sub PCIINTSTAT_POOLINV () {	0x100;}
}
unless(defined(&PCIINTSTAT_ERR_CMD)) {
    sub PCIINTSTAT_ERR_CMD () {	0x80;}
}
unless(defined(&PCIINTSTAT_ERR_SRC)) {
    sub PCIINTSTAT_ERR_SRC () {	0x40;}
}
unless(defined(&PCIINTSTAT_ERR_IN)) {
    sub PCIINTSTAT_ERR_IN () {	0x20;}
}
unless(defined(&PCIINTSTAT_ERR_MULTI)) {
    sub PCIINTSTAT_ERR_MULTI () {	0x10;}
}
unless(defined(&PCIINTSTAT_MIPSPAR)) {
    sub PCIINTSTAT_MIPSPAR () {	0x4;}
}
unless(defined(&PCIINTSTAT_MIPSPCI)) {
    sub PCIINTSTAT_MIPSPCI () {	0x2;}
}
unless(defined(&PCIINTSTAT_FREE_E)) {
    sub PCIINTSTAT_FREE_E () {	0x1;}
}
unless(defined(&NOFN_PK_WIN_0)) {
    sub NOFN_PK_WIN_0 () {	0x;}
}
unless(defined(&NOFN_PK_WIN_1)) {
    sub NOFN_PK_WIN_1 () {	0x2000;}
}
unless(defined(&NOFN_PK_WIN_2)) {
    sub NOFN_PK_WIN_2 () {	0x4000;}
}
unless(defined(&NOFN_PK_WIN_3)) {
    sub NOFN_PK_WIN_3 () {	0x6000;}
}
unless(defined(&NOFN_PK_REGADDR)) {
    sub NOFN_PK_REGADDR {
	my($win,$r,$i) = @_;
	eval q((($win) | ((($r) & 0xf) << 7) | ((($i) & 0x1f) << 2)));
    }
}
unless(defined(&NOFN_PK_LENADDR)) {
    sub NOFN_PK_LENADDR {
	my($r) = @_;
	eval q((0x1000 + (($r) << 2)));
    }
}
unless(defined(&NOFN_PK_LENMASK)) {
    sub NOFN_PK_LENMASK () {	0x7ff;}
}
unless(defined(&NOFN_PK_RNGFIFO_BEGIN)) {
    sub NOFN_PK_RNGFIFO_BEGIN () {	0x1080;}
}
unless(defined(&NOFN_PK_RNGFIFO_END)) {
    sub NOFN_PK_RNGFIFO_END () {	0x10bc;}
}
unless(defined(&NOFN_PK_INSTR_BEGIN)) {
    sub NOFN_PK_INSTR_BEGIN () {	0x1100;}
}
unless(defined(&NOFN_PK_INSTR_END)) {
    sub NOFN_PK_INSTR_END () {	0x12fc;}
}
unless(defined(&NOFN_PK_CR)) {
    sub NOFN_PK_CR () {	0x1fd4;}
}
unless(defined(&NOFN_PK_SR)) {
    sub NOFN_PK_SR () {	0x1fd8;}
}
unless(defined(&NOFN_PK_IER)) {
    sub NOFN_PK_IER () {	0x1fdc;}
}
unless(defined(&NOFN_PK_RNC)) {
    sub NOFN_PK_RNC () {	0x1fe0;}
}
unless(defined(&NOFN_PK_CFG1)) {
    sub NOFN_PK_CFG1 () {	0x1fe4;}
}
unless(defined(&NOFN_PK_CFG2)) {
    sub NOFN_PK_CFG2 () {	0x1fe8;}
}
unless(defined(&NOFN_PK_CHIPID)) {
    sub NOFN_PK_CHIPID () {	0x1fec;}
}
unless(defined(&NOFN_PK_SCR)) {
    sub NOFN_PK_SCR () {	0x1ff0;}
}
unless(defined(&PK_CR_OFFSET_M)) {
    sub PK_CR_OFFSET_M () {	0x1fc;}
}
unless(defined(&PK_CR_OFFSET_S)) {
    sub PK_CR_OFFSET_S () {	2;}
}
unless(defined(&PK_SR_DONE)) {
    sub PK_SR_DONE () {	0x8000;}
}
unless(defined(&PK_SR_RRDY)) {
    sub PK_SR_RRDY () {	0x4000;}
}
unless(defined(&PK_SR_UFLOW)) {
    sub PK_SR_UFLOW () {	0x1000;}
}
unless(defined(&PK_SR_CARRY)) {
    sub PK_SR_CARRY () {	0x8;}
}
unless(defined(&PK_IER_DONE)) {
    sub PK_IER_DONE () {	0x8000;}
}
unless(defined(&PK_IER_RRDY)) {
    sub PK_IER_RRDY () {	0x4000;}
}
unless(defined(&PK_RNC_FST_SCALER)) {
    sub PK_RNC_FST_SCALER () {	0xf00;}
}
unless(defined(&PK_RNC_OUT_SCALER)) {
    sub PK_RNC_OUT_SCALER () {	0x80;}
}
unless(defined(&PK_CFG1_RESET)) {
    sub PK_CFG1_RESET () {	0x1;}
}
unless(defined(&PK_CFG2_ALU_ENA)) {
    sub PK_CFG2_ALU_ENA () {	0x2;}
}
unless(defined(&PK_CFG2_RNG_ENA)) {
    sub PK_CFG2_RNG_ENA () {	0x1;}
}
unless(defined(&PK_OP_DONE)) {
    sub PK_OP_DONE () {	0x80000000;}
}
unless(defined(&PK_OPCODE_MASK)) {
    sub PK_OPCODE_MASK () {	0x7c000000;}
}
unless(defined(&PK_OPCODE_MODEXP)) {
    sub PK_OPCODE_MODEXP () {	0x;}
}
unless(defined(&PK_OPCODE_MODMUL)) {
    sub PK_OPCODE_MODMUL () {	0x4000000;}
}
unless(defined(&PK_OPCODE_MODRED)) {
    sub PK_OPCODE_MODRED () {	0x8000000;}
}
unless(defined(&PK_OPCODE_MODADD)) {
    sub PK_OPCODE_MODADD () {	0xc000000;}
}
unless(defined(&PK_OPCODE_MODSUB)) {
    sub PK_OPCODE_MODSUB () {	0x10000000;}
}
unless(defined(&PK_OPCODE_ADD)) {
    sub PK_OPCODE_ADD () {	0x14000000;}
}
unless(defined(&PK_OPCODE_SUB)) {
    sub PK_OPCODE_SUB () {	0x18000000;}
}
unless(defined(&PK_OPCODE_ADDC)) {
    sub PK_OPCODE_ADDC () {	0x1c000000;}
}
unless(defined(&PK_OPCODE_SUBC)) {
    sub PK_OPCODE_SUBC () {	0x20000000;}
}
unless(defined(&PK_OPCODE_MULT)) {
    sub PK_OPCODE_MULT () {	0x24000000;}
}
unless(defined(&PK_OPCODE_SR)) {
    sub PK_OPCODE_SR () {	0x28000000;}
}
unless(defined(&PK_OPCODE_SL)) {
    sub PK_OPCODE_SL () {	0x2c000000;}
}
unless(defined(&PK_OPCODE_INC)) {
    sub PK_OPCODE_INC () {	0x30000000;}
}
unless(defined(&PK_OPCODE_DEC)) {
    sub PK_OPCODE_DEC () {	0x34000000;}
}
unless(defined(&PK_OPCODE_TAG)) {
    sub PK_OPCODE_TAG () {	0x38000000;}
}
unless(defined(&PK_OPCODE_BRANCH)) {
    sub PK_OPCODE_BRANCH () {	0x3c000000;}
}
unless(defined(&PK_OPCODE_CALL)) {
    sub PK_OPCODE_CALL () {	0x40000000;}
}
unless(defined(&PK_OPCODE_RETURN)) {
    sub PK_OPCODE_RETURN () {	0x44000000;}
}
unless(defined(&PK_OP_RD_SHIFT)) {
    sub PK_OP_RD_SHIFT () {	21;}
}
unless(defined(&PK_OP_RA_SHIFT)) {
    sub PK_OP_RA_SHIFT () {	16;}
}
unless(defined(&PK_OP_RB_SHIFT)) {
    sub PK_OP_RB_SHIFT () {	11;}
}
unless(defined(&PK_OP_RM_SHIFT)) {
    sub PK_OP_RM_SHIFT () {	6;}
}
unless(defined(&PK_OP_R_MASK)) {
    sub PK_OP_R_MASK () {	0x1f;}
}
unless(defined(&PK_OP_LEN_MASK)) {
    sub PK_OP_LEN_MASK () {	0xffff;}
}
unless(defined(&NOFN_PK_INSTR)) {
    sub NOFN_PK_INSTR {
	my($done,$op,$rd,$ra,$rb,$rm) = @_;
	eval q((($done) | ($op) | ((($rd) &  &PK_OP_R_MASK) <<  &PK_OP_RD_SHIFT) | ((($ra) &  &PK_OP_R_MASK) <<  &PK_OP_RA_SHIFT) | ((($rb) &  &PK_OP_R_MASK) <<  &PK_OP_RB_SHIFT) | ((($rm) &  &PK_OP_R_MASK) <<  &PK_OP_RM_SHIFT)));
    }
}
unless(defined(&NOFN_PK_INSTR2)) {
    sub NOFN_PK_INSTR2 {
	my($done,$op,$rd,$ra,$len) = @_;
	eval q((($done) | ($op) | ((($rd) &  &PK_OP_R_MASK) <<  &PK_OP_RD_SHIFT) | ((($ra) &  &PK_OP_R_MASK) <<  &PK_OP_RA_SHIFT) | (($len) &  &PK_OP_LEN_MASK)));
    }
}
1;
