Lines Matching refs:udbg_comport
49 static struct NS16550 __iomem *udbg_comport;
53 if (udbg_comport) {
54 while ((in_8(&udbg_comport->lsr) & LSR_THRE) == 0)
61 if (udbg_comport) {
65 out_8(&udbg_comport->thr, c);
71 if (udbg_comport) {
72 if ((in_8(&udbg_comport->lsr) & LSR_DR) != 0)
73 return in_8(&udbg_comport->rbr);
82 if (udbg_comport) {
83 while ((in_8(&udbg_comport->lsr) & LSR_DR) == 0)
85 return in_8(&udbg_comport->rbr);
104 udbg_comport = (struct NS16550 __iomem *)comport;
105 out_8(&udbg_comport->lcr, 0x00);
106 out_8(&udbg_comport->ier, 0xff);
107 out_8(&udbg_comport->ier, 0x00);
108 out_8(&udbg_comport->lcr, LCR_DLAB);
109 out_8(&udbg_comport->dll, dll & 0xff);
110 out_8(&udbg_comport->dlm, dll >> 8);
112 out_8(&udbg_comport->lcr, 0x03);
114 out_8(&udbg_comport->mcr, 0x03);
116 out_8(&udbg_comport->fcr ,0x07);
162 if (udbg_comport) {
163 while ((real_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
170 if (udbg_comport) {
174 real_writeb(c, &udbg_comport->thr); eieio();
180 udbg_comport = (struct NS16550 __iomem *)0xf40003f8;
192 if (udbg_comport) {
193 while ((real_205_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
200 if (udbg_comport) {
204 real_205_writeb(c, &udbg_comport->thr); eieio();
210 udbg_comport = (struct NS16550 __iomem *)0xfcff03f8UL;
224 if (udbg_comport) {
225 while ((as1_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
232 if (udbg_comport) {
236 as1_writeb(c, &udbg_comport->thr); eieio();
242 if (udbg_comport) {
243 while ((as1_readb(&udbg_comport->lsr) & LSR_DR) == 0)
245 return as1_readb(&udbg_comport->rbr);
252 udbg_comport =
264 if (udbg_comport) {
265 while ((real_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
272 if (udbg_comport) {
276 real_writeb(c, &udbg_comport->thr); eieio();
282 if (udbg_comport) {
283 while ((real_readb(&udbg_comport->lsr) & LSR_DR) == 0)
285 return real_readb(&udbg_comport->rbr);
292 udbg_comport = (struct NS16550 __iomem *)