aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fddi/defxx.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2014-09-25 06:06:55 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-28 17:22:10 -0400
commitb98dfaf2b0a3e72fa5967dafb4f246442584a780 (patch)
tree4cc04f9085d0b1863dd6cf27e9fdc95d8b5d28cd /drivers/net/fddi/defxx.h
parentb1a6d3ecf806457d3e76ac0044db424be3c9422d (diff)
defxx: DEFEA's ESIC port I/O decoding cleanup
Use the slot-specific I/O range for decoding accesses to PDQ ASIC registers (IOCS0) and the discrete Burst Holdoff register (IOCS1) as per the "HD64981F EISA Slave Interface Controller (ESIC)" datasheet. Use disjoint decode ranges now that the assignment of chip selects is known. Update the span of the port I/O resource requested accordingly. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi/defxx.h')
-rw-r--r--drivers/net/fddi/defxx.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/fddi/defxx.h b/drivers/net/fddi/defxx.h
index adb63f3f7b4a..9527f0182fd4 100644
--- a/drivers/net/fddi/defxx.h
+++ b/drivers/net/fddi/defxx.h
@@ -1479,8 +1479,10 @@ typedef union
1479 1479
1480/* Define EISA controller register offsets */ 1480/* Define EISA controller register offsets */
1481 1481
1482#define PI_ESIC_K_CSR_IO_LEN 0x80 /* 128 bytes */ 1482#define PI_ESIC_K_CSR_IO_LEN 0x40 /* 64 bytes */
1483#define PI_ESIC_K_BURST_HOLDOFF_LEN 0x04 /* 4 bytes */
1483 1484
1485#define PI_DEFEA_K_CSR_IO 0x000
1484#define PI_DEFEA_K_BURST_HOLDOFF 0x040 1486#define PI_DEFEA_K_BURST_HOLDOFF 0x040
1485 1487
1486#define PI_ESIC_K_SLOT_ID 0xC80 1488#define PI_ESIC_K_SLOT_ID 0xC80
@@ -1558,11 +1560,9 @@ typedef union
1558 1560
1559#define PI_MEM_ADD_MASK_M 0x3ff 1561#define PI_MEM_ADD_MASK_M 0x3ff
1560 1562
1561/* 1563/* Define the fields in the I/O Address Compare and Mask registers. */
1562 * Define the fields in the IO Compare registers. 1564
1563 * The driver must initialize the slot field with the slot ID shifted by the 1565#define PI_IO_CMP_M_SLOT 0xf0
1564 * amount shown below.
1565 */
1566 1566
1567#define PI_IO_CMP_V_SLOT 4 1567#define PI_IO_CMP_V_SLOT 4
1568 1568