···3939#include <linux/io.h>40404141#include "arcdevice.h"4242+#include "com9026.h"42434344/* Internal function declarations */4445···5958/* Amount of I/O memory used by the card */6059#define BUFFER_SIZE (512)6160#define MIRROR_SIZE (BUFFER_SIZE * 4)6262-6363-/* COM 9026 controller chip --> ARCnet register addresses */6464-#define COM9026_REG_W_INTMASK 0 /* writable */6565-#define COM9026_REG_R_STATUS 0 /* readable */6666-#define COM9026_REG_W_COMMAND 1 /* writable, returns random vals on read (?) */6767-#define COM9026_REG_RW_CONFIG 2 /* Configuration register */6868-#define COM9026_REG_R_RESET 8 /* software reset (on read) */6969-#define COM9026_REG_RW_MEMDATA 12 /* Data port for IO-mapped memory */7070-#define COM9026_REG_W_ADDR_LO 14 /* Control registers for said */7171-#define COM9026_REG_W_ADDR_HI 157272-7373-#define COM9026_REG_R_STATION 1 /* Station ID */74617562/* We cannot probe for a RIM I card; one reason is I don't know how to reset7663 * them. In fact, we can't even get their node ID automatically. So, we
+1
drivers/net/arcnet/arcnet.c
···5353#include <linux/jiffies.h>54545555#include "arcdevice.h"5656+#include "com9026.h"56575758/* "do nothing" functions for protocol drivers */5859static void null_rx(struct net_device *dev, int bufnum,
+17
drivers/net/arcnet/com9026.h
···11+#ifndef __COM9026_H22+#define __COM9026_H33+44+/* COM 9026 controller chip --> ARCnet register addresses */55+66+#define COM9026_REG_W_INTMASK 0 /* writable */77+#define COM9026_REG_R_STATUS 0 /* readable */88+#define COM9026_REG_W_COMMAND 1 /* writable, returns random vals on read (?) */99+#define COM9026_REG_RW_CONFIG 2 /* Configuration register */1010+#define COM9026_REG_R_RESET 8 /* software reset (on read) */1111+#define COM9026_REG_RW_MEMDATA 12 /* Data port for IO-mapped memory */1212+#define COM9026_REG_W_ADDR_LO 14 /* Control registers for said */1313+#define COM9026_REG_W_ADDR_HI 151414+1515+#define COM9026_REG_R_STATION 1 /* Station ID */1616+1717+#endif
+1-10
drivers/net/arcnet/com90io.c
···4040#include <linux/io.h>41414242#include "arcdevice.h"4343+#include "com9026.h"43444445/* Internal function declarations */4546···58575958/* The number of low I/O ports used by the card. */6059#define ARCNET_TOTAL_SIZE 166161-6262-/* COM 9026 controller chip --> ARCnet register addresses */6363-#define COM9026_REG_W_INTMASK 0 /* writable */6464-#define COM9026_REG_R_STATUS 0 /* readable */6565-#define COM9026_REG_W_COMMAND 1 /* writable, returns random vals on read (?) */6666-#define COM9026_REG_RW_CONFIG 2 /* Configuration register */6767-#define COM9026_REG_R_RESET 8 /* software reset (on read) */6868-#define COM9026_REG_RW_MEMDATA 12 /* Data port for IO-mapped memory */6969-#define COM9026_REG_W_ADDR_LO 14 /* Control registers for said */7070-#define COM9026_REG_W_ADDR_HI 1571607261/****************************************************************************7362 * *
+1-12
drivers/net/arcnet/com90xx.c
···3838#include <linux/io.h>39394040#include "arcdevice.h"4141+#include "com9026.h"41424243/* Define this to speed up the autoprobe by assuming if only one io port and4344 * shmem are left in the list at Stage 5, they must correspond to each···7877/* Amount of I/O memory used by the card */7978#define BUFFER_SIZE (512)8079#define MIRROR_SIZE (BUFFER_SIZE * 4)8181-8282-/* COM 9026 controller chip --> ARCnet register addresses */8383-#define COM9026_REG_W_INTMASK 0 /* writable */8484-#define COM9026_REG_R_STATUS 0 /* readable */8585-#define COM9026_REG_W_COMMAND 1 /* writable, returns random vals on read (?) */8686-#define COM9026_REG_RW_CONFIG 2 /* Configuration register */8787-#define COM9026_REG_R_RESET 8 /* software reset (on read) */8888-#define COM9026_REG_RW_MEMDATA 12 /* Data port for IO-mapped memory */8989-#define COM9026_REG_W_ADDR_LO 14 /* Control registers for said */9090-#define COM9026_REG_W_ADDR_HI 159191-9292-#define COM9026_REG_R_STATION 1 /* Station ID */93809481static int com90xx_skip_probe __initdata = 0;9582