/* Power down config (also with status regB access mode */
uint8_t pwrd;
/* Sun4m quirks? */
- int sun;
+ int sun4m;
/* Floppy drives */
fdrive_t drives[2];
};
switch (reg & 0x07) {
case 0x00:
- if (fdctrl->sun) {
+ if (fdctrl->sun4m) {
// Identify to Linux as S82078B
retval = fdctrl_read_statusB(fdctrl);
} else {
fdctrl->dma_chann = dma_chann;
fdctrl->io_base = io_base;
fdctrl->config = 0x60; /* Implicit seek, polling & FIFO enabled */
- fdctrl->sun = 0;
+ fdctrl->sun4m = 0;
if (fdctrl->dma_chann != -1) {
fdctrl->dma_en = 1;
DMA_register_channel(dma_chann, &fdctrl_transfer_handler, fdctrl);
fdctrl_t *fdctrl;
fdctrl = fdctrl_init(irq, 0, 1, io_base, fds);
- fdctrl->sun = 1;
+ fdctrl->sun4m = 1;
return fdctrl;
}
static void fdctrl_raise_irq (fdctrl_t *fdctrl, uint8_t status)
{
// Sparc mutation
- if (fdctrl->sun && !fdctrl->dma_en) {
+ if (fdctrl->sun4m && !fdctrl->dma_en) {
fdctrl->state &= ~FD_CTRL_BUSY;
fdctrl->int_status = status;
return;