extern void pcc_ioread(int, unsigned long, void *, size_t, size_t, int);
extern void pcc_iowrite(int, unsigned long, void *, size_t, size_t, int);
extern void pcc_ioread(int, unsigned long, void *, size_t, size_t, int);
extern void pcc_iowrite(int, unsigned long, void *, size_t, size_t, int);
- unsigned char b;
- pcc_ioread(0, port, &b, sizeof(b), 1, 0);
- return b;
+ unsigned char b;
+ pcc_ioread(0, port, &b, sizeof(b), 1, 0);
+ return b;
- unsigned char b;
- pcc_ioread(1, port, &b, sizeof(b), 1, 0);
- return b;
+ unsigned char b;
+ pcc_ioread(1, port, &b, sizeof(b), 1, 0);
+ return b;
- unsigned short w;
- pcc_ioread(0, port, &w, sizeof(w), 1, 0);
- return w;
+ unsigned short w;
+ pcc_ioread(0, port, &w, sizeof(w), 1, 0);
+ return w;
- unsigned short w;
- pcc_ioread(1, port, &w, sizeof(w), 1, 0);
- return w;
+ unsigned short w;
+ pcc_ioread(1, port, &w, sizeof(w), 1, 0);
+ return w;
- unsigned long l;
- pcc_ioread(0, port, &l, sizeof(l), 1, 0);
- return l;
+ unsigned long l;
+ pcc_ioread(0, port, &l, sizeof(l), 1, 0);
+ return l;
- unsigned short l;
- pcc_ioread(1, port, &l, sizeof(l), 1, 0);
- return l;
+ unsigned short l;
+ pcc_ioread(1, port, &l, sizeof(l), 1, 0);
+ return l;
- unsigned char b;
- pcc_ioread(0, port, &b, sizeof(b), 1, 0);
- return b;
+ unsigned char b;
+ pcc_ioread(0, port, &b, sizeof(b), 1, 0);
+ return b;
- unsigned char b;
- pcc_ioread(1, port, &b, sizeof(b), 1, 0);
- return b;
+ unsigned char b;
+ pcc_ioread(1, port, &b, sizeof(b), 1, 0);
+ return b;
- unsigned short w;
- pcc_ioread(0, port, &w, sizeof(w), 1, 0);
- return w;
+ unsigned short w;
+ pcc_ioread(0, port, &w, sizeof(w), 1, 0);
+ return w;
- unsigned short w;
- pcc_ioread(1, port, &w, sizeof(w), 1, 0);
- return w;
+ unsigned short w;
+ pcc_ioread(1, port, &w, sizeof(w), 1, 0);
+ return w;
if (port >= 0x300 && port < 0x320)
_ne_outb(b, PORT2ADDR_NE(port));
else
if (port >= 0x300 && port < 0x320)
_ne_outb(b, PORT2ADDR_NE(port));
else
- pcc_iowrite(0, port, &b, sizeof(b), 1, 0);
+ pcc_iowrite(0, port, &b, sizeof(b), 1, 0);
- pcc_iowrite(1, port, &b, sizeof(b), 1, 0);
+ pcc_iowrite(1, port, &b, sizeof(b), 1, 0);
if (port >= 0x300 && port < 0x320)
_ne_outw(w, PORT2ADDR_NE(port));
else
if (port >= 0x300 && port < 0x320)
_ne_outw(w, PORT2ADDR_NE(port));
else
- pcc_iowrite(0, port, &w, sizeof(w), 1, 0);
+ pcc_iowrite(0, port, &w, sizeof(w), 1, 0);
- pcc_iowrite(1, port, &w, sizeof(w), 1, 0);
+ pcc_iowrite(1, port, &w, sizeof(w), 1, 0);
- pcc_iowrite(0, port, &l, sizeof(l), 1, 0);
+ pcc_iowrite(0, port, &l, sizeof(l), 1, 0);
- pcc_iowrite(1, port, &l, sizeof(l), 1, 0);
+ pcc_iowrite(1, port, &l, sizeof(l), 1, 0);
if (port >= 0x300 && port < 0x320)
_ne_outb(b, PORT2ADDR_NE(port));
else
if (port >= 0x300 && port < 0x320)
_ne_outb(b, PORT2ADDR_NE(port));
else
- pcc_iowrite(0, port, &b, sizeof(b), 1, 0);
+ pcc_iowrite(0, port, &b, sizeof(b), 1, 0);
- pcc_iowrite(1, port, &b, sizeof(b), 1, 0);
+ pcc_iowrite(1, port, &b, sizeof(b), 1, 0);
if (port >= 0x300 && port < 0x320)
_ne_outw(w, PORT2ADDR_NE(port));
else
if (port >= 0x300 && port < 0x320)
_ne_outw(w, PORT2ADDR_NE(port));
else
- pcc_iowrite(0, port, &w, sizeof(w), 1, 0);
+ pcc_iowrite(0, port, &w, sizeof(w), 1, 0);
- pcc_iowrite(1, port, &w, sizeof(w), 1, 0);
+ pcc_iowrite(1, port, &w, sizeof(w), 1, 0);
{
unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320){
portp = PORT2ADDR_NE(port);
{
unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320){
portp = PORT2ADDR_NE(port);
- while(count--) *buf++ = *(volatile unsigned char *)portp;
-#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32RPCC)
+ while (count--)
+ *buf++ = *(volatile unsigned char *)portp;
+#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32R_PCC)
- pcc_ioread(0, port, (void *)addr, sizeof(unsigned char), count, 1);
+ pcc_ioread(0, port, (void *)addr, sizeof(unsigned char),
+ count, 1);
- pcc_ioread(1, port, (void *)addr, sizeof(unsigned char), count, 1);
+ pcc_ioread(1, port, (void *)addr, sizeof(unsigned char),
+ count, 1);
{
unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
{
unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
- pcc_ioread(0, port, (void *)addr, sizeof(unsigned short), count, 1);
+ pcc_ioread(0, port, (void *)addr, sizeof(unsigned short),
+ count, 1);
- pcc_ioread(1, port, (void *)addr, sizeof(unsigned short), count, 1);
+ pcc_ioread(1, port, (void *)addr, sizeof(unsigned short),
+ count, 1);
{
const unsigned char *buf = addr;
unsigned char *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
{
const unsigned char *buf = addr;
unsigned char *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
- while (count--) _ne_outb(*buf++, portp);
-#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32RPCC)
+ while (count--)
+ _ne_outb(*buf++, portp);
+#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32R_PCC)
- pcc_iowrite(0, port, (void *)addr, sizeof(unsigned char), count, 1);
+ pcc_iowrite(0, port, (void *)addr, sizeof(unsigned char),
+ count, 1);
- pcc_iowrite(1, port, (void *)addr, sizeof(unsigned char), count, 1);
+ pcc_iowrite(1, port, (void *)addr, sizeof(unsigned char),
+ count, 1);
{
const unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
{
const unsigned short *buf = addr;
unsigned short *portp;
if (port >= 0x300 && port < 0x320) {
portp = PORT2ADDR_NE(port);
- while (count--) _ne_outw(*buf++, portp);
-#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32RPCC)
+ while (count--)
+ _ne_outw(*buf++, portp);
+#if defined(CONFIG_PCMCIA) && defined(CONFIG_M32R_PCC)
- pcc_iowrite(0, port, (void *)addr, sizeof(unsigned short), count, 1);
+ pcc_iowrite(0, port, (void *)addr, sizeof(unsigned short),
+ count, 1);
- pcc_iowrite(1, port, (void *)addr, sizeof(unsigned short), count, 1);
+ pcc_iowrite(1, port, (void *)addr, sizeof(unsigned short),
+ count, 1);