1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright 2007 Russell King
8 /* Definitions internal to ecard.c - for it's use only!!
10 * External expansion card header as read from the card
13 unsigned char r_irq
:1;
14 unsigned char r_zero
:1;
15 unsigned char r_fiq
:1;
26 unsigned char r_prod
[2];
28 unsigned char r_manu
[2];
30 unsigned char r_country
;
32 unsigned char r_fiqmask
;
33 unsigned char r_fiqoff
[3];
35 unsigned char r_irqmask
;
36 unsigned char r_irqoff
[3];
40 * Chunk directory entry as read from the card
44 unsigned char r_len
[3];
45 unsigned long r_start
;
50 #define c_id(x) ((x)->r_id)
51 #define c_len(x) ((x)->r_len[0]|((x)->r_len[1]<<8)|((x)->r_len[2]<<16))
52 #define c_start(x) ((x)->r_start)
55 typedef enum ecard_type
{ /* Cards address space */
61 typedef enum { /* Speed for ECARD_IOC space */