gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:out_h from mtkernel_3/device/ser/sysdepend/rza2m/ser_rza2m.c (0.00 seconds)
mtkernel_3
device/ser/sysdepend/rza2m/ser_rza2m.c - 10.5KB - 342 lines
80:                         reg = in_h(ba[unit] + SCI_SCR);
81:                         out_h(ba[unit] + SCI_SCR, reg & ~SCI_SCR_TIE);
82:                 }
107: reg = in_h(ba[unit] + SCI_FSR); 108: out_h(ba[unit] + SCI_FSR, reg & ~(SCI_FSR_DR|SCI_FSR_RDF)); 109:
132: reg = in_h(ba[unit] + SCI_FSR); 133: out_h(ba[unit] + SCI_FSR, reg & ~SCI_FSR_ER); /* Clear receive error */ 134: err = (UW)(reg & (DEV_SER_ERR_PE | DEV_SER_ERR_FE));
136: reg = in_h(ba[unit] + SCI_LSR); 137: out_h(ba[unit] + SCI_FSR, reg & ~SCI_LSR_ORER); /* Clear receive error */ 138: err |= (UW)(reg & DEV_SER_ERR_OE);
154: /* Set communication mode & Speed */ 155: out_h( ba[unit] + SCI_SMR, (UH)((mode & 0x00000078)|(speed>>8 & 0x00000003))); 156: 157: reg = in_h( ba[unit] + SCI_SEMR); 158: out_h( ba[unit] + SCI_SEMR, (UH)((reg & ~SCI_SEMR_ABCS)|(speed & SCI_SEMR_ABCS))); 159:
163: reg = in_h(ba[unit] + SCI_FSR); 164: out_h(ba[unit] + SCI_FSR, reg & ~(SCI_FSR_DR|SCI_FSR_RDF)); 165: 166: /* SCR.TE,RE,TIE,RIE,REIE<- 1 */ 167: out_h( ba[unit] + SCI_SCR, 168: (SCI_SCR_RE | SCI_SCR_TE | SCI_SCR_RIE | SCI_SCR_REIE));
176: if(unit != DEVCNF_SER_DBGUN) { 177: out_h(ba[unit] + SCI_SCR, SCI_SCR_INI); 178: } else { /* Used by T-Monitor */ 179: out_h(ba[unit] + SCI_SCR, SCI_SCR_DEBUG); 180: }
247: /* FIFO initialize */ 248: out_h(ba[unit] + SCI_FCR, SCI_FCR_RFRST | SCI_FCR_TFRST); /* FIFO Reset */ 249: out_h(ba[unit] + SCI_FCR, SCI_FCR_INI); /* Set RSTRG */ 250: out_h(ba[unit] + SCI_FTCR, SCI_FTCR_INI); /* Set FIFO trigger */ 251:
253: reg = in_h(ba[unit] + SCI_FSR); 254: out_h(ba[unit] + SCI_FSR, 0); /* Initialize FSR */ 255: reg = in_h(ba[unit] + SCI_LSR); 256: out_h(ba[unit] + SCI_LSR, 0); /* Initialize LSR */ 257:
284: reg = in_h(ba[unit] + SCI_SCR); 285: out_h(ba[unit] + SCI_SCR, reg | SCI_SCR_TIE); 286: err = E_OK;
320: stop_com(unit); /* Stop communication */ 321: out_h(ba[unit] + SCI_SPTR, SCI_SPTR_INI); /* Serial port setting */ 322: out_h( ba[unit] + SCI_SEMR, 0); 323: