forked from keirf/flashfloppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
da.h
49 lines (45 loc) · 1.09 KB
/
da.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
46
47
48
49
/*
* da.h
*
* Structure definitions for Direct Access protocol.
*
* Written & released by Keir Fraser <[email protected]>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
#define DA_FIRST_CYL 254
#define DA_SD_FM_CYL (DA_FIRST_CYL + 0)
#define DA_DD_MFM_CYL (DA_FIRST_CYL + 1)
/* Direct-Access Mode: Returned in sector 0 of direct-access track. */
struct packed da_status_sector {
char sig[8];
char fw_ver[12];
uint32_t lba_base;
uint8_t cmd_cnt;
uint8_t read_cnt;
uint8_t write_cnt;
uint8_t last_cmd_status;
uint8_t write_locked;
uint8_t keys_status;
uint8_t sd_status;
uint8_t SD_WP;
uint8_t SD_CD;
uint8_t nr_sec;
uint16_t current_index;
};
/* Direct-Access Mode: Sent to us in sector 0 of direct-access track. */
struct packed da_cmd_sector {
char sig[8];
uint8_t cmd;
uint8_t param[8];
};
/*
* Local variables:
* mode: C
* c-file-style: "Linux"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/