require '_h2ph_pre.ph';

unless(defined(&_LINUX_SERIAL_REG_H)) {
    eval 'sub _LINUX_SERIAL_REG_H () {1;}' unless defined(&_LINUX_SERIAL_REG_H);
    eval 'sub UART_RX () {0;}' unless defined(&UART_RX);
    eval 'sub UART_TX () {0;}' unless defined(&UART_TX);
    eval 'sub UART_DLL () {0;}' unless defined(&UART_DLL);
    eval 'sub UART_TRG () {0;}' unless defined(&UART_TRG);
    eval 'sub UART_DLM () {1;}' unless defined(&UART_DLM);
    eval 'sub UART_IER () {1;}' unless defined(&UART_IER);
    eval 'sub UART_FCTR () {1;}' unless defined(&UART_FCTR);
    eval 'sub UART_IIR () {2;}' unless defined(&UART_IIR);
    eval 'sub UART_FCR () {2;}' unless defined(&UART_FCR);
    eval 'sub UART_EFR () {2;}' unless defined(&UART_EFR);
    eval 'sub UART_LCR () {3;}' unless defined(&UART_LCR);
    eval 'sub UART_MCR () {4;}' unless defined(&UART_MCR);
    eval 'sub UART_LSR () {5;}' unless defined(&UART_LSR);
    eval 'sub UART_MSR () {6;}' unless defined(&UART_MSR);
    eval 'sub UART_SCR () {7;}' unless defined(&UART_SCR);
    eval 'sub UART_EMSR () {7;}' unless defined(&UART_EMSR);
    eval 'sub UART_FCR_ENABLE_FIFO () {0x1;}' unless defined(&UART_FCR_ENABLE_FIFO);
    eval 'sub UART_FCR_CLEAR_RCVR () {0x2;}' unless defined(&UART_FCR_CLEAR_RCVR);
    eval 'sub UART_FCR_CLEAR_XMIT () {0x4;}' unless defined(&UART_FCR_CLEAR_XMIT);
    eval 'sub UART_FCR_DMA_SELECT () {0x8;}' unless defined(&UART_FCR_DMA_SELECT);
    eval 'sub UART_FCR_TRIGGER_MASK () {0xc0;}' unless defined(&UART_FCR_TRIGGER_MASK);
    eval 'sub UART_FCR_TRIGGER_1 () {0x;}' unless defined(&UART_FCR_TRIGGER_1);
    eval 'sub UART_FCR_TRIGGER_4 () {0x40;}' unless defined(&UART_FCR_TRIGGER_4);
    eval 'sub UART_FCR_TRIGGER_8 () {0x80;}' unless defined(&UART_FCR_TRIGGER_8);
    eval 'sub UART_FCR_TRIGGER_14 () {0xc0;}' unless defined(&UART_FCR_TRIGGER_14);
    eval 'sub UART_FCR6_R_TRIGGER_8 () {0x;}' unless defined(&UART_FCR6_R_TRIGGER_8);
    eval 'sub UART_FCR6_R_TRIGGER_16 () {0x40;}' unless defined(&UART_FCR6_R_TRIGGER_16);
    eval 'sub UART_FCR6_R_TRIGGER_24 () {0x80;}' unless defined(&UART_FCR6_R_TRIGGER_24);
    eval 'sub UART_FCR6_R_TRIGGER_28 () {0xc0;}' unless defined(&UART_FCR6_R_TRIGGER_28);
    eval 'sub UART_FCR6_T_TRIGGER_16 () {0x;}' unless defined(&UART_FCR6_T_TRIGGER_16);
    eval 'sub UART_FCR6_T_TRIGGER_8 () {0x10;}' unless defined(&UART_FCR6_T_TRIGGER_8);
    eval 'sub UART_FCR6_T_TRIGGER_24 () {0x20;}' unless defined(&UART_FCR6_T_TRIGGER_24);
    eval 'sub UART_FCR6_T_TRIGGER_30 () {0x30;}' unless defined(&UART_FCR6_T_TRIGGER_30);
    eval 'sub UART_FCR7_64BYTE () {0x20;}' unless defined(&UART_FCR7_64BYTE);
    eval 'sub UART_LCR_DLAB () {0x80;}' unless defined(&UART_LCR_DLAB);
    eval 'sub UART_LCR_SBC () {0x40;}' unless defined(&UART_LCR_SBC);
    eval 'sub UART_LCR_SPAR () {0x20;}' unless defined(&UART_LCR_SPAR);
    eval 'sub UART_LCR_EPAR () {0x10;}' unless defined(&UART_LCR_EPAR);
    eval 'sub UART_LCR_PARITY () {0x8;}' unless defined(&UART_LCR_PARITY);
    eval 'sub UART_LCR_STOP () {0x4;}' unless defined(&UART_LCR_STOP);
    eval 'sub UART_LCR_WLEN5 () {0x;}' unless defined(&UART_LCR_WLEN5);
    eval 'sub UART_LCR_WLEN6 () {0x1;}' unless defined(&UART_LCR_WLEN6);
    eval 'sub UART_LCR_WLEN7 () {0x2;}' unless defined(&UART_LCR_WLEN7);
    eval 'sub UART_LCR_WLEN8 () {0x3;}' unless defined(&UART_LCR_WLEN8);
    eval 'sub UART_LSR_TEMT () {0x40;}' unless defined(&UART_LSR_TEMT);
    eval 'sub UART_LSR_THRE () {0x20;}' unless defined(&UART_LSR_THRE);
    eval 'sub UART_LSR_BI () {0x10;}' unless defined(&UART_LSR_BI);
    eval 'sub UART_LSR_FE () {0x8;}' unless defined(&UART_LSR_FE);
    eval 'sub UART_LSR_PE () {0x4;}' unless defined(&UART_LSR_PE);
    eval 'sub UART_LSR_OE () {0x2;}' unless defined(&UART_LSR_OE);
    eval 'sub UART_LSR_DR () {0x1;}' unless defined(&UART_LSR_DR);
    eval 'sub UART_IIR_NO_INT () {0x1;}' unless defined(&UART_IIR_NO_INT);
    eval 'sub UART_IIR_ID () {0x6;}' unless defined(&UART_IIR_ID);
    eval 'sub UART_IIR_MSI () {0x;}' unless defined(&UART_IIR_MSI);
    eval 'sub UART_IIR_THRI () {0x2;}' unless defined(&UART_IIR_THRI);
    eval 'sub UART_IIR_RDI () {0x4;}' unless defined(&UART_IIR_RDI);
    eval 'sub UART_IIR_RLSI () {0x6;}' unless defined(&UART_IIR_RLSI);
    eval 'sub UART_IER_MSI () {0x8;}' unless defined(&UART_IER_MSI);
    eval 'sub UART_IER_RLSI () {0x4;}' unless defined(&UART_IER_RLSI);
    eval 'sub UART_IER_THRI () {0x2;}' unless defined(&UART_IER_THRI);
    eval 'sub UART_IER_RDI () {0x1;}' unless defined(&UART_IER_RDI);
    eval 'sub UART_IERX_SLEEP () {0x10;}' unless defined(&UART_IERX_SLEEP);
    eval 'sub UART_MCR_LOOP () {0x10;}' unless defined(&UART_MCR_LOOP);
    eval 'sub UART_MCR_OUT2 () {0x8;}' unless defined(&UART_MCR_OUT2);
    eval 'sub UART_MCR_OUT1 () {0x4;}' unless defined(&UART_MCR_OUT1);
    eval 'sub UART_MCR_RTS () {0x2;}' unless defined(&UART_MCR_RTS);
    eval 'sub UART_MCR_DTR () {0x1;}' unless defined(&UART_MCR_DTR);
    eval 'sub UART_MSR_DCD () {0x80;}' unless defined(&UART_MSR_DCD);
    eval 'sub UART_MSR_RI () {0x40;}' unless defined(&UART_MSR_RI);
    eval 'sub UART_MSR_DSR () {0x20;}' unless defined(&UART_MSR_DSR);
    eval 'sub UART_MSR_CTS () {0x10;}' unless defined(&UART_MSR_CTS);
    eval 'sub UART_MSR_DDCD () {0x8;}' unless defined(&UART_MSR_DDCD);
    eval 'sub UART_MSR_TERI () {0x4;}' unless defined(&UART_MSR_TERI);
    eval 'sub UART_MSR_DDSR () {0x2;}' unless defined(&UART_MSR_DDSR);
    eval 'sub UART_MSR_DCTS () {0x1;}' unless defined(&UART_MSR_DCTS);
    eval 'sub UART_MSR_ANY_DELTA () {0xf;}' unless defined(&UART_MSR_ANY_DELTA);
    eval 'sub UART_EFR_CTS () {0x80;}' unless defined(&UART_EFR_CTS);
    eval 'sub UART_EFR_RTS () {0x40;}' unless defined(&UART_EFR_RTS);
    eval 'sub UART_EFR_SCD () {0x20;}' unless defined(&UART_EFR_SCD);
    eval 'sub UART_EFR_ECB () {0x10;}' unless defined(&UART_EFR_ECB);
    eval 'sub UART_ASR () {0x1;}' unless defined(&UART_ASR);
    eval 'sub UART_RFL () {0x3;}' unless defined(&UART_RFL);
    eval 'sub UART_TFL () {0x4;}' unless defined(&UART_TFL);
    eval 'sub UART_ICR () {0x5;}' unless defined(&UART_ICR);
    eval 'sub UART_ACR () {0x;}' unless defined(&UART_ACR);
    eval 'sub UART_CPR () {0x1;}' unless defined(&UART_CPR);
    eval 'sub UART_TCR () {0x2;}' unless defined(&UART_TCR);
    eval 'sub UART_CKS () {0x3;}' unless defined(&UART_CKS);
    eval 'sub UART_TTL () {0x4;}' unless defined(&UART_TTL);
    eval 'sub UART_RTL () {0x5;}' unless defined(&UART_RTL);
    eval 'sub UART_FCL () {0x6;}' unless defined(&UART_FCL);
    eval 'sub UART_FCH () {0x7;}' unless defined(&UART_FCH);
    eval 'sub UART_ID1 () {0x8;}' unless defined(&UART_ID1);
    eval 'sub UART_ID2 () {0x9;}' unless defined(&UART_ID2);
    eval 'sub UART_ID3 () {0xa;}' unless defined(&UART_ID3);
    eval 'sub UART_REV () {0xb;}' unless defined(&UART_REV);
    eval 'sub UART_CSR () {0xc;}' unless defined(&UART_CSR);
    eval 'sub UART_NMR () {0xd;}' unless defined(&UART_NMR);
    eval 'sub UART_CTR () {0xff;}' unless defined(&UART_CTR);
    eval 'sub UART_ACR_RXDIS () {0x1;}' unless defined(&UART_ACR_RXDIS);
    eval 'sub UART_ACR_TXDIS () {0x2;}' unless defined(&UART_ACR_TXDIS);
    eval 'sub UART_ACR_DSRFC () {0x4;}' unless defined(&UART_ACR_DSRFC);
    eval 'sub UART_ACR_TLENB () {0x20;}' unless defined(&UART_ACR_TLENB);
    eval 'sub UART_ACR_ICRRD () {0x40;}' unless defined(&UART_ACR_ICRRD);
    eval 'sub UART_ACR_ASREN () {0x80;}' unless defined(&UART_ACR_ASREN);
    eval 'sub UART_FCTR_RTS_NODELAY () {0x;}' unless defined(&UART_FCTR_RTS_NODELAY);
    eval 'sub UART_FCTR_RTS_4DELAY () {0x1;}' unless defined(&UART_FCTR_RTS_4DELAY);
    eval 'sub UART_FCTR_RTS_6DELAY () {0x2;}' unless defined(&UART_FCTR_RTS_6DELAY);
    eval 'sub UART_FCTR_RTS_8DELAY () {0x3;}' unless defined(&UART_FCTR_RTS_8DELAY);
    eval 'sub UART_FCTR_IRDA () {0x4;}' unless defined(&UART_FCTR_IRDA);
    eval 'sub UART_FCTR_TX_INT () {0x8;}' unless defined(&UART_FCTR_TX_INT);
    eval 'sub UART_FCTR_TRGA () {0x;}' unless defined(&UART_FCTR_TRGA);
    eval 'sub UART_FCTR_TRGB () {0x10;}' unless defined(&UART_FCTR_TRGB);
    eval 'sub UART_FCTR_TRGC () {0x20;}' unless defined(&UART_FCTR_TRGC);
    eval 'sub UART_FCTR_TRGD () {0x30;}' unless defined(&UART_FCTR_TRGD);
    eval 'sub UART_FCTR_SCR_SWAP () {0x40;}' unless defined(&UART_FCTR_SCR_SWAP);
    eval 'sub UART_FCTR_RX () {0x;}' unless defined(&UART_FCTR_RX);
    eval 'sub UART_FCTR_TX () {0x80;}' unless defined(&UART_FCTR_TX);
    eval 'sub UART_EMSR_FIFO_COUNT () {0x1;}' unless defined(&UART_EMSR_FIFO_COUNT);
    eval 'sub UART_EMSR_ALT_COUNT () {0x2;}' unless defined(&UART_EMSR_ALT_COUNT);
    eval 'sub UART_TRG_1 () {0x1;}' unless defined(&UART_TRG_1);
    eval 'sub UART_TRG_4 () {0x4;}' unless defined(&UART_TRG_4);
    eval 'sub UART_TRG_8 () {0x8;}' unless defined(&UART_TRG_8);
    eval 'sub UART_TRG_16 () {0x10;}' unless defined(&UART_TRG_16);
    eval 'sub UART_TRG_32 () {0x20;}' unless defined(&UART_TRG_32);
    eval 'sub UART_TRG_64 () {0x40;}' unless defined(&UART_TRG_64);
    eval 'sub UART_TRG_96 () {0x60;}' unless defined(&UART_TRG_96);
    eval 'sub UART_TRG_120 () {0x78;}' unless defined(&UART_TRG_120);
    eval 'sub UART_TRG_128 () {0x80;}' unless defined(&UART_TRG_128);
    eval 'sub UART_RSA_BASE () {(-8);}' unless defined(&UART_RSA_BASE);
    eval 'sub UART_RSA_MSR () {(( &UART_RSA_BASE) + 0);}' unless defined(&UART_RSA_MSR);
    eval 'sub UART_RSA_MSR_SWAP () {(1<< 0);}' unless defined(&UART_RSA_MSR_SWAP);
    eval 'sub UART_RSA_MSR_FIFO () {(1<< 2);}' unless defined(&UART_RSA_MSR_FIFO);
    eval 'sub UART_RSA_MSR_FLOW () {(1<< 3);}' unless defined(&UART_RSA_MSR_FLOW);
    eval 'sub UART_RSA_MSR_ITYP () {(1<< 4);}' unless defined(&UART_RSA_MSR_ITYP);
    eval 'sub UART_RSA_IER () {(( &UART_RSA_BASE) + 1);}' unless defined(&UART_RSA_IER);
    eval 'sub UART_RSA_IER_Rx_FIFO_H () {(1<< 0);}' unless defined(&UART_RSA_IER_Rx_FIFO_H);
    eval 'sub UART_RSA_IER_Tx_FIFO_H () {(1<< 1);}' unless defined(&UART_RSA_IER_Tx_FIFO_H);
    eval 'sub UART_RSA_IER_Tx_FIFO_E () {(1<< 2);}' unless defined(&UART_RSA_IER_Tx_FIFO_E);
    eval 'sub UART_RSA_IER_Rx_TOUT () {(1<< 3);}' unless defined(&UART_RSA_IER_Rx_TOUT);
    eval 'sub UART_RSA_IER_TIMER () {(1<< 4);}' unless defined(&UART_RSA_IER_TIMER);
    eval 'sub UART_RSA_SRR () {(( &UART_RSA_BASE) + 2);}' unless defined(&UART_RSA_SRR);
    eval 'sub UART_RSA_SRR_Tx_FIFO_NEMP () {(1<< 0);}' unless defined(&UART_RSA_SRR_Tx_FIFO_NEMP);
    eval 'sub UART_RSA_SRR_Tx_FIFO_NHFL () {(1<< 1);}' unless defined(&UART_RSA_SRR_Tx_FIFO_NHFL);
    eval 'sub UART_RSA_SRR_Tx_FIFO_NFUL () {(1<< 2);}' unless defined(&UART_RSA_SRR_Tx_FIFO_NFUL);
    eval 'sub UART_RSA_SRR_Rx_FIFO_NEMP () {(1<< 3);}' unless defined(&UART_RSA_SRR_Rx_FIFO_NEMP);
    eval 'sub UART_RSA_SRR_Rx_FIFO_NHFL () {(1<< 4);}' unless defined(&UART_RSA_SRR_Rx_FIFO_NHFL);
    eval 'sub UART_RSA_SRR_Rx_FIFO_NFUL () {(1<< 5);}' unless defined(&UART_RSA_SRR_Rx_FIFO_NFUL);
    eval 'sub UART_RSA_SRR_Rx_TOUT () {(1<< 6);}' unless defined(&UART_RSA_SRR_Rx_TOUT);
    eval 'sub UART_RSA_SRR_TIMER () {(1<< 7);}' unless defined(&UART_RSA_SRR_TIMER);
    eval 'sub UART_RSA_FRR () {(( &UART_RSA_BASE) + 2);}' unless defined(&UART_RSA_FRR);
    eval 'sub UART_RSA_TIVSR () {(( &UART_RSA_BASE) + 3);}' unless defined(&UART_RSA_TIVSR);
    eval 'sub UART_RSA_TCR () {(( &UART_RSA_BASE) + 4);}' unless defined(&UART_RSA_TCR);
    eval 'sub UART_RSA_TCR_SWITCH () {(1<< 0);}' unless defined(&UART_RSA_TCR_SWITCH);
    eval 'sub SERIAL_RSA_BAUD_BASE () {(921600);}' unless defined(&SERIAL_RSA_BAUD_BASE);
    eval 'sub SERIAL_RSA_BAUD_BASE_LO () {( &SERIAL_RSA_BAUD_BASE / 8);}' unless defined(&SERIAL_RSA_BAUD_BASE_LO);
}
1;
