Home | History | Annotate | Download | only in ic

Lines Matching defs:ecr

912 	u_int8_t ecr;
918 /* If ECP capable, configure ecr register */
920 /* Read ECR with mode masked out */
921 ecr = (atppc_r_ecr(atppc) & 0x1f);
927 ecr |= ATPPC_ECR_ECP;
934 ecr |= ATPPC_ECR_EPP;
944 ecr |= ATPPC_ECR_FIFO;
950 ecr |= ATPPC_ECR_PS2;
956 ecr |= ATPPC_ECR_STD;
962 ecr |= ATPPC_ECR_STD;
979 atppc_w_ecr(atppc, ecr);
1025 ecr = atppc_r_ctr(atppc);
1027 ecr |= PCD;
1028 atppc_w_ctr(atppc, ecr);
1793 u_int8_t ecr;
1815 ecr = atppc_r_ecr(atppc);
1817 if (ecr & ATPPC_FIFO_EMPTY) {
1819 if (ecr & ATPPC_FIFO_FULL) {
1833 ecr &= ~ATPPC_SERVICE_INTR;
1834 atppc_w_ecr(atppc, ecr);
1846 else if (ecr & ATPPC_FIFO_FULL) {
1850 else if (ecr & ATPPC_SERVICE_INTR) {
1861 atppc_ecp_read_dma(atppc, &worklen, ecr);
1863 atppc_ecp_read_pio(atppc, &worklen, ecr);
1883 unsigned char ecr)
1894 ecr &= ~ATPPC_SERVICE_INTR;
1895 ecr |= ATPPC_ENABLE_DMA;
1896 atppc_w_ecr(atppc, ecr);
1906 ecr = atppc->sc_ecr_intr;
1911 ecr &= ~ATPPC_ENABLE_DMA;
1912 atppc_w_ecr(atppc, ecr);
1919 unsigned char ecr)
1922 ecr &= ~ATPPC_ENABLE_DMA;
1923 atppc_w_ecr(atppc, ecr);
1934 unsigned char ecr = atppc_r_ecr(atppc);
1943 if ((ecr & ATPPC_FIFO_EMPTY) && (ecr & ATPPC_FIFO_FULL)) {
2055 unsigned char ecr;
2060 ecr = ecr_sav;
2071 atppc_w_ecr(atppc, ecr);
2078 atppc_fifo_write_dma(atppc, ecr, ctr);
2080 atppc_fifo_write_pio(atppc, ecr, ctr);
2090 atppc_fifo_write_dma(struct atppc_softc * const atppc, unsigned char ecr,
2108 atppc_w_ecr(atppc, ecr);
2119 ecr &= ~ATPPC_SERVICE_INTR;
2120 ecr |= ATPPC_ENABLE_DMA;
2121 atppc_w_ecr(atppc, ecr);
2132 ecr = atppc->sc_ecr_intr;
2137 ecr &= ~ATPPC_ENABLE_DMA;
2138 atppc_w_ecr(atppc, ecr);
2143 if (ecr & ATPPC_FIFO_EMPTY) {
2144 if (ecr & ATPPC_FIFO_FULL) {
2154 ecr &= ~ATPPC_SERVICE_INTR;
2155 atppc_w_ecr(atppc, ecr);
2166 ecr = atppc->sc_ecr_intr;
2175 atppc_fifo_write_pio(struct atppc_softc * const atppc, unsigned char ecr,
2183 ecr &= ~ATPPC_ENABLE_DMA;
2184 atppc_w_ecr(atppc, ecr);
2204 ecr = atppc_r_ecr(atppc);
2209 if (ecr & ATPPC_FIFO_EMPTY) {
2210 if (ecr & ATPPC_FIFO_FULL) {
2221 ecr &= ~ATPPC_SERVICE_INTR;
2222 atppc_w_ecr(atppc, ecr);
2232 /* Get ECR value saved by interrupt handler */
2233 ecr = atppc->sc_ecr_intr;
2239 ecr = atppc_r_ecr(atppc);
2241 if (ecr & ATPPC_FIFO_EMPTY) {
2242 if (ecr & ATPPC_FIFO_FULL) {
2270 unsigned char ecr = atppc_r_ecr(atppc);
2279 if ((ecr & ATPPC_FIFO_EMPTY) && (ecr & ATPPC_FIFO_FULL)) {
2281 } else if (!(ecr & ATPPC_FIFO_EMPTY)) {
2297 ecr = atppc_r_ecr(atppc);
2299 if (ecr & ATPPC_FIFO_FULL)