/*
** asm-m68k/pcmcia.h -- Amiga Linux PCMCIA Definitions
**
** Copyright 1997 by Alain Malek
**
** This file is subject to the terms and conditions of the GNU General Public
** License. See the file COPYING in the main directory of this archive
** for more details.
**
** Created: 12/10/97 by Alain Malek
*/
#ifndef __AMIGA_PCMCIA_H__
#define __AMIGA_PCMCIA_H__
#include <asm /amigayle.h>
/* prototypes */
void pcmcia_reset(void );
int pcmcia_copy_tuple(unsigned char tuple_id, void *tuple, int max_len);
void pcmcia_program_voltage(int voltage);
void pcmcia_access_speed(int speed);
void pcmcia_write_enable(void );
void pcmcia_write_disable(void );
static inline u_char pcmcia_read_status(void )
{
return (gayle.cardstatus & 0 x7c);
}
static inline u_char pcmcia_get_intreq(void )
{
return (gayle.intreq);
}
static inline void pcmcia_ack_int(u_char intreq)
{
gayle.intreq = 0 xf8;
}
static inline void pcmcia_enable_irq(void )
{
gayle.inten |= GAYLE_IRQ_IRQ;
}
static inline void pcmcia_disable_irq(void )
{
gayle.inten &= ~GAYLE_IRQ_IRQ;
}
#define PCMCIA_INSERTED (gayle.cardstatus & GAYLE_CS_CCDET)
/* valid voltages for pcmcia_ProgramVoltage */
#define PCMCIA_0V 0
#define PCMCIA_5V 5
#define PCMCIA_12V 12
/* valid speeds for pcmcia_AccessSpeed */
#define PCMCIA_SPEED_100NS 100
#define PCMCIA_SPEED_150NS 150
#define PCMCIA_SPEED_250NS 250
#define PCMCIA_SPEED_720NS 720
/* PCMCIA Tuple codes */
#define CISTPL_NULL 0 x00
#define CISTPL_DEVICE 0 x01
#define CISTPL_LONGLINK_CB 0 x02
#define CISTPL_CONFIG_CB 0 x04
#define CISTPL_CFTABLE_ENTRY_CB 0 x05
#define CISTPL_LONGLINK_MFC 0 x06
#define CISTPL_BAR 0 x07
#define CISTPL_CHECKSUM 0 x10
#define CISTPL_LONGLINK_A 0 x11
#define CISTPL_LONGLINK_C 0 x12
#define CISTPL_LINKTARGET 0 x13
#define CISTPL_NO_LINK 0 x14
#define CISTPL_VERS_1 0 x15
#define CISTPL_ALTSTR 0 x16
#define CISTPL_DEVICE_A 0 x17
#define CISTPL_JEDEC_C 0 x18
#define CISTPL_JEDEC_A 0 x19
#define CISTPL_CONFIG 0 x1a
#define CISTPL_CFTABLE_ENTRY 0 x1b
#define CISTPL_DEVICE_OC 0 x1c
#define CISTPL_DEVICE_OA 0 x1d
#define CISTPL_DEVICE_GEO 0 x1e
#define CISTPL_DEVICE_GEO_A 0 x1f
#define CISTPL_MANFID 0 x20
#define CISTPL_FUNCID 0 x21
#define CISTPL_FUNCE 0 x22
#define CISTPL_SWIL 0 x23
#define CISTPL_END 0 xff
/* FUNCID */
#define CISTPL_FUNCID_MULTI 0 x00
#define CISTPL_FUNCID_MEMORY 0 x01
#define CISTPL_FUNCID_SERIAL 0 x02
#define CISTPL_FUNCID_PARALLEL 0 x03
#define CISTPL_FUNCID_FIXED 0 x04
#define CISTPL_FUNCID_VIDEO 0 x05
#define CISTPL_FUNCID_NETWORK 0 x06
#define CISTPL_FUNCID_AIMS 0 x07
#define CISTPL_FUNCID_SCSI 0 x08
#endif
Messung V0.5 in Prozent C=94 H=93 G=93
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-08)
¤
*© Formatika GbR, Deutschland