-
Notifications
You must be signed in to change notification settings - Fork 5
/
attach.h
46 lines (40 loc) · 1.26 KB
/
attach.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _ATTACH_H
#define _ATTACH_H
struct scsipi_periph;
struct sio_softc;
struct ExecBase;
struct Task;
struct Interrupt;
struct siop_softc;
struct MsgPort;
struct timerequest;
struct callout;
struct ConfigDev;
typedef struct {
uint32_t as_addr;
struct ExecBase *as_SysBase;
int8_t as_timer_running;
uint8_t as_irq_signal;
uint32_t as_irq_count; // Total interrupts
uint32_t as_int_mask;
uint32_t as_timer_mask;
struct Task *as_svc_task;
struct Interrupt *as_isr; // My interrupt server
volatile uint8_t as_exiting;
struct siop_softc *as_device_private;
struct MsgPort *as_timerport;
struct timerequest *as_timerio;
struct callout **as_callout_head;
struct ConfigDev *as_cd;
/* battmem */
uint8_t cdrom_boot;
uint8_t ignore_last;
} a4091_save_t;
extern a4091_save_t *asave;
int attach(device_t self, uint scsi_target, struct scsipi_periph **periph,
uint flags);
void detach(struct scsipi_periph *periph);
int periph_still_attached(void);
int init_chan(device_t self, UBYTE *boardnum);
void deinit_chan(device_t self);
#endif /* _ATTACH_H */