/* * eisa_eeprom.h - provide support for EISA adapters in PA-RISC machines * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * Copyright (c) 2001, 2002 Daniel Engstrom <5116@telia.com> * */ #ifndef ASM_EISA_EEPROM_H #define ASM_EISA_EEPROM_H extern void __iomem *eisa_eeprom_addr; #define HPEE_MAX_LENGTH 0x2000 /* maximum eeprom length */ #define HPEE_SLOT_INFO(slot) (20+(48*slot)) struct eeprom_header { u_int32_t num_writes; /* number of writes */ u_int8_t flags; /* flags, usage? */ u_int8_t ver_maj; u_int8_t ver_min; u_int8_t num_slots; /* number of EISA slots in system */ u_int16_t csum; /* checksum, I don't know how to calculate this */ u_int8_t pad[10]; } __attribute__ ((packed)); struct eeprom_eisa_slot_info { u_int32_t eisa_slot_id; u_int32_t config_data_offset; u_int32_t num_writes; u_int16_t csum; u_int16_t num_functions; u_int16_t config_data_length; /* bits 0..3 are the duplicate slot id */ #define HPEE_SLOT_INFO_EMBEDDED 0x10 #define HPEE_SLOT_INFO_VIRTUAL 0x20 #define HPEE_SLOT_INFO_NO_READID 0x40 #define HPEE_SLOT_INFO_DUPLICATE 0x80 u_int8_t slot_info; #define HPEE_SLOT_FEATURES_ENABLE 0x01 #define HPEE_SLOT_FEATURES_IOCHK 0x02 #define HPEE_SLOT_FEATURES_CFG_INCOMPLETE 0x80 u_int8_t slot_features; u_int8_t ver_min; u_int8_t ver_maj; #define HPEE_FUNCTION_INFO_HAVE_TYPE 0x01 #define HPEE_FUNCTION_INFO_HAVE_MEMORY 0x02 #define HPEE_FUNCTION_INFO_HAVE_IRQ 0x04 #define HPEE_FUNCTION_INFO_HAVE_DMA 0x08 #define HPEE_FUNCTION_INFO_HAVE_PORT 0x10 #define HPEE_FUNCTION_INFO_HAVE_PORT_INIT 0x20 /* I think there are two slighty different * versions of the function_info field * one int the fixed header and one optional * in the parsed slot data area */ #define HPEE_FUNCTION_INFO_HAVE_FUNCTION 0x01 #define HPEE_FUNCTION_INFO_F_DISABLED 0x80 #define HPEE_FUNCTION_INFO_CFG_FREE_FORM 0x40 u_int8_t function_info; #define HPEE_FLAG_BOARD_IS_ISA 0x01 /* flag and minor version for isa board */ u_int8_t flags; u_int8_t pad[24]; } __attribute__ ((packed)); #define HPEE_MEMORY_MAX_ENT 9 /* memory descriptor: byte 0 */ #define HPEE_MEMORY_WRITABLE 0x01 #define HPEE_MEMORY_CACHABLE 0x02 #define HPEE_MEMORY_TYPE_MASK 0x18 #define HPEE_MEMORY_TYPE_SYS 0x00 #define HPEE_MEMORY_TYPE_EXP 0x08 #define HPEE_MEMORY_TYPE_VIR 0x10 #define HPEE_MEMORY_TYPE_OTH 0x18 #define HPEE_MEMORY_SHARED 0x20 #define HPEE_MEMORY_MORE 0x80 /* memory descriptor: byte 1 */ #define HPEE_MEMORY_WIDTH_MASK 0x03 #define HPEE_MEMORY_WIDTH_BYTE 0x00 #define HPEE_MEMORY_WIDTH_WORD 0x01 #define HPEE_MEMORY_WIDTH_DWORD 0x02 #define HPEE_MEMORY_DECODE_MASK 0x0c #define HPEE_MEMORY_DECODE_20BITS 0x00 #define HPEE_MEMORY_DECODE_24BITS 0x04 #define HPEE_MEMORY_DECODE_32BITS 0x08 /* byte 2 and 3 are a 16bit LE value * containing the memory size in kilobytes */ /* byte 4,5,6 are a 24bit LE value * containing the memory base address */ #define HPEE_IRQ_MAX_ENT 7 /* Interrupt entry: byte 0 */ #define HPEE_IRQ_CHANNEL_MASK 0xf #define HPEE_IRQ_TRIG_LEVEL 0x20 #define HPEE_IRQ_MORE 0x80 /* byte 1 seems to be unused */ #define HPEE_DMA_MAX_ENT 4 /* dma entry: byte 0 */ #define HPEE_DMA_CHANNEL_MASK 7 #define HPEE_DMA_SIZE_MASK 0xc #define HPEE_DMA_SIZE_BYTE 0x0 #define HPEE_DMA_SIZE_WORD 0x4 #define HPEE_DMA_SIZE_DWORD 0x8 #define HPEE_DMA_SHARED 0x40 #define HPEE_DMA_MORE 0x80 /* dma entry: byte 1 */ #define HPEE_DMA_TIMING_MASK 0x30 #define HPEE_DMA_TIMING_ISA 0x0 #define HPEE_DMA_TIMING_TYPEA 0x10 #define HPEE_DMA_TIMING_TYPEB 0x20 #define HPEE_DMA_TIMING_TYPEC 0x30 #define HPEE_PORT_MAX_ENT 20 /* port entry byte 0 */ #define HPEE_PORT_SIZE_MASK 0x1f #define HPEE_PORT_SHARED 0x40 #define HPEE_PORT_MORE 0x80 /* byte 1 and 2 is a 16bit LE value * containing the start port number */ #define HPEE_PORT_INIT_MAX_LEN 60 /* in bytes here */ /* port init entry byte 0 */ #define HPEE_PORT_INIT_WIDTH_MASK 0x3 #define HPEE_PORT_INIT_WIDTH_BYTE 0x0 #define HPEE_PORT_INIT_WIDTH_WORD 0x1 #define HPEE_PORT_INIT_WIDTH_DWORD 0x2 #define HPEE_PORT_INIT_MASK 0x4 #define HPEE_PORT_INIT_MORE 0x80 #define HPEE_SELECTION_MAX_ENT 26 #define HPEE_TYPE_MAX_LEN 80 #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 610 B | 0644 |
|
agp.h | File | 596 B | 0644 |
|
asm-offsets.h | File | 35 B | 0644 |
|
asmregs.h | File | 3.04 KB | 0644 |
|
assembly.h | File | 12.94 KB | 0644 |
|
atomic.h | File | 8.24 KB | 0644 |
|
barrier.h | File | 2.44 KB | 0644 |
|
bitops.h | File | 5.89 KB | 0644 |
|
bug.h | File | 2.35 KB | 0644 |
|
bugs.h | File | 340 B | 0644 |
|
cache.h | File | 1.59 KB | 0644 |
|
cacheflush.h | File | 4.06 KB | 0644 |
|
checksum.h | File | 5.48 KB | 0644 |
|
cmpxchg.h | File | 3.62 KB | 0644 |
|
compat.h | File | 6.52 KB | 0644 |
|
compat_ucontext.h | File | 591 B | 0644 |
|
delay.h | File | 533 B | 0644 |
|
dma-mapping.h | File | 2.42 KB | 0644 |
|
dma.h | File | 5.71 KB | 0644 |
|
dwarf.h | File | 602 B | 0644 |
|
eisa_bus.h | File | 702 B | 0644 |
|
eisa_eeprom.h | File | 4.42 KB | 0644 |
|
elf.h | File | 14.31 KB | 0644 |
|
fb.h | File | 403 B | 0644 |
|
fixmap.h | File | 1.15 KB | 0644 |
|
floppy.h | File | 6.61 KB | 0644 |
|
ftrace.h | File | 379 B | 0644 |
|
futex.h | File | 2.66 KB | 0644 |
|
grfioctl.h | File | 4.68 KB | 0644 |
|
hardirq.h | File | 1.3 KB | 0644 |
|
hardware.h | File | 4.1 KB | 0644 |
|
hash.h | File | 5.07 KB | 0644 |
|
hugetlb.h | File | 1.67 KB | 0644 |
|
ide.h | File | 1.09 KB | 0644 |
|
io.h | File | 8.14 KB | 0644 |
|
irq.h | File | 1.23 KB | 0644 |
|
irqflags.h | File | 1.02 KB | 0644 |
|
kbdleds.h | File | 477 B | 0644 |
|
kmap_types.h | File | 221 B | 0644 |
|
ldcw.h | File | 2.15 KB | 0644 |
|
led.h | File | 1.33 KB | 0644 |
|
linkage.h | File | 759 B | 0644 |
|
machdep.h | File | 349 B | 0644 |
|
mckinley.h | File | 270 B | 0644 |
|
mmu.h | File | 195 B | 0644 |
|
mmu_context.h | File | 2.08 KB | 0644 |
|
mmzone.h | File | 1.51 KB | 0644 |
|
module.h | File | 527 B | 0644 |
|
page.h | File | 5.42 KB | 0644 |
|
parisc-device.h | File | 1.92 KB | 0644 |
|
parport.h | File | 358 B | 0644 |
|
pci.h | File | 6.57 KB | 0644 |
|
pdc.h | File | 3.93 KB | 0644 |
|
pdc_chassis.h | File | 15.06 KB | 0644 |
|
pdcpat.h | File | 15 KB | 0644 |
|
perf.h | File | 1.89 KB | 0644 |
|
perf_event.h | File | 152 B | 0644 |
|
pgalloc.h | File | 4.22 KB | 0644 |
|
pgtable.h | File | 18.92 KB | 0644 |
|
prefetch.h | File | 1.12 KB | 0644 |
|
processor.h | File | 9.86 KB | 0644 |
|
psw.h | File | 2.39 KB | 0644 |
|
ptrace.h | File | 803 B | 0644 |
|
ropes.h | File | 9.73 KB | 0644 |
|
rt_sigframe.h | File | 745 B | 0644 |
|
runway.h | File | 320 B | 0644 |
|
sections.h | File | 283 B | 0644 |
|
serial.h | File | 124 B | 0644 |
|
shmparam.h | File | 263 B | 0644 |
|
signal.h | File | 841 B | 0644 |
|
smp.h | File | 1.25 KB | 0644 |
|
socket.h | File | 311 B | 0644 |
|
special_insns.h | File | 1015 B | 0644 |
|
spinlock.h | File | 4.02 KB | 0644 |
|
spinlock_types.h | File | 483 B | 0644 |
|
string.h | File | 247 B | 0644 |
|
superio.h | File | 3.25 KB | 0644 |
|
switch_to.h | File | 332 B | 0644 |
|
syscall.h | File | 1.4 KB | 0644 |
|
termios.h | File | 1.72 KB | 0644 |
|
thread_info.h | File | 3.15 KB | 0644 |
|
timex.h | File | 372 B | 0644 |
|
tlb.h | File | 672 B | 0644 |
|
tlbflush.h | File | 2.63 KB | 0644 |
|
topology.h | File | 900 B | 0644 |
|
traps.h | File | 468 B | 0644 |
|
uaccess.h | File | 6.55 KB | 0644 |
|
ucontext.h | File | 327 B | 0644 |
|
unaligned.h | File | 472 B | 0644 |
|
unistd.h | File | 5.47 KB | 0644 |
|
unwind.h | File | 2.56 KB | 0644 |
|