flashfloppy/inc/da.h
Keir Fraser 5538be6686 Remove double underscore prefix from __packed and __aligned() definitions.
It is polluting the GCC namespace and breaks the build with GCC v9.
2019-12-10 15:04:55 +00:00

49 lines
1.1 KiB
C

/*
* da.h
*
* Structure definitions for Direct Access protocol.
*
* Written & released by Keir Fraser <keir.xen@gmail.com>
*
* 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:
*/