~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/asm/amipcmcia.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2 ** asm-m68k/pcmcia.h -- Amiga Linux PCMCIA Definitions
  3 **
  4 ** Copyright 1997 by Alain Malek
  5 **
  6 ** This file is subject to the terms and conditions of the GNU General Public
  7 ** License.  See the file COPYING in the main directory of this archive
  8 ** for more details.
  9 **
 10 ** Created: 12/10/97 by Alain Malek
 11 */
 12 
 13 #ifndef __AMIGA_PCMCIA_H__
 14 #define __AMIGA_PCMCIA_H__
 15 
 16 #include <asm/amigayle.h>
 17 
 18 /* prototypes */
 19 
 20 void pcmcia_reset(void);
 21 int pcmcia_copy_tuple(unsigned char tuple_id, void *tuple, int max_len);
 22 void pcmcia_program_voltage(int voltage);
 23 void pcmcia_access_speed(int speed);
 24 void pcmcia_write_enable(void);
 25 void pcmcia_write_disable(void);
 26 
 27 static inline u_char pcmcia_read_status(void)
 28 {
 29         return (gayle.cardstatus & 0x7c);
 30 }
 31 
 32 static inline u_char pcmcia_get_intreq(void)
 33 {
 34         return (gayle.intreq);
 35 }
 36 
 37 static inline void pcmcia_ack_int(u_char intreq)
 38 {
 39         gayle.intreq = 0xf8;
 40 }
 41 
 42 static inline void pcmcia_enable_irq(void)
 43 {
 44         gayle.inten |= GAYLE_IRQ_IRQ;
 45 }
 46 
 47 static inline void pcmcia_disable_irq(void)
 48 {
 49         gayle.inten &= ~GAYLE_IRQ_IRQ;
 50 }
 51 
 52 #define PCMCIA_INSERTED (gayle.cardstatus & GAYLE_CS_CCDET)
 53 
 54 /* valid voltages for pcmcia_ProgramVoltage */
 55 
 56 #define PCMCIA_0V       0
 57 #define PCMCIA_5V       5
 58 #define PCMCIA_12V      12
 59 
 60 /* valid speeds for pcmcia_AccessSpeed */
 61 
 62 #define PCMCIA_SPEED_100NS      100
 63 #define PCMCIA_SPEED_150NS      150
 64 #define PCMCIA_SPEED_250NS      250
 65 #define PCMCIA_SPEED_720NS      720
 66 
 67 /* PCMCIA Tuple codes */
 68 
 69 #define CISTPL_NULL             0x00
 70 #define CISTPL_DEVICE           0x01
 71 #define CISTPL_LONGLINK_CB      0x02
 72 #define CISTPL_CONFIG_CB        0x04
 73 #define CISTPL_CFTABLE_ENTRY_CB 0x05
 74 #define CISTPL_LONGLINK_MFC     0x06
 75 #define CISTPL_BAR              0x07
 76 #define CISTPL_CHECKSUM         0x10
 77 #define CISTPL_LONGLINK_A       0x11
 78 #define CISTPL_LONGLINK_C       0x12
 79 #define CISTPL_LINKTARGET       0x13
 80 #define CISTPL_NO_LINK          0x14
 81 #define CISTPL_VERS_1           0x15
 82 #define CISTPL_ALTSTR           0x16
 83 #define CISTPL_DEVICE_A         0x17
 84 #define CISTPL_JEDEC_C          0x18
 85 #define CISTPL_JEDEC_A          0x19
 86 #define CISTPL_CONFIG           0x1a
 87 #define CISTPL_CFTABLE_ENTRY    0x1b
 88 #define CISTPL_DEVICE_OC        0x1c
 89 #define CISTPL_DEVICE_OA        0x1d
 90 #define CISTPL_DEVICE_GEO       0x1e
 91 #define CISTPL_DEVICE_GEO_A     0x1f
 92 #define CISTPL_MANFID           0x20
 93 #define CISTPL_FUNCID           0x21
 94 #define CISTPL_FUNCE            0x22
 95 #define CISTPL_SWIL             0x23
 96 #define CISTPL_END              0xff
 97 
 98 /* FUNCID */
 99 
100 #define CISTPL_FUNCID_MULTI     0x00
101 #define CISTPL_FUNCID_MEMORY    0x01
102 #define CISTPL_FUNCID_SERIAL    0x02
103 #define CISTPL_FUNCID_PARALLEL  0x03
104 #define CISTPL_FUNCID_FIXED     0x04
105 #define CISTPL_FUNCID_VIDEO     0x05
106 #define CISTPL_FUNCID_NETWORK   0x06
107 #define CISTPL_FUNCID_AIMS      0x07
108 #define CISTPL_FUNCID_SCSI      0x08
109 
110 #endif
111 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php