Changeset dc5647e in mainline


Ignore:
Timestamp:
2024-07-08T19:00:57Z (5 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
878736e
Parents:
e3997a8
Message:

PC floppy disk driver

Bare minimum implemented.

Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • meson/arch/amd64/meson.build

    re3997a8 rdc5647e  
    7777        'drv/block/ahci',
    7878        'drv/block/isa-ide',
     79        'drv/block/pc-floppy',
    7980        'drv/block/pci-ide',
    8081        'drv/block/usbmast',
  • meson/arch/ia32/meson.build

    re3997a8 rdc5647e  
    8383        'drv/block/ahci',
    8484        'drv/block/isa-ide',
     85        'drv/block/pc-floppy',
    8586        'drv/block/pci-ide',
    8687        'drv/block/usbmast',
  • uspace/drv/block/pci-ide/pci-ide.c

    re3997a8 rdc5647e  
    186186        bool irq_inited = false;
    187187        ata_params_t params;
    188         void *buffer;
     188        void *buffer = NULL;
    189189
    190190        ddf_msg(LVL_DEBUG, "pci_ide_channel_init()");
     
    294294        return EOK;
    295295error:
     296        if (buffer != NULL)
     297                dmamem_unmap_anonymous(buffer);
    296298        if (irq_inited)
    297299                pci_ide_fini_irq(chan);
     
    315317        }
    316318
     319        dmamem_unmap_anonymous(chan->dma_buf);
    317320        pci_ide_fini_irq(chan);
    318321        pci_ide_fini_io(chan);
  • uspace/drv/bus/isa/isa.dev

    re3997a8 rdc5647e  
    5151        io_range 70 2
    5252
     53fdc:
     54        match 100 isa/fdc
     55        io_range 0x3f0 8
     56        irq 6
     57        dma 2
     58
    5359ide1:
    5460        match 100 isa/ide
  • uspace/drv/meson.build

    re3997a8 rdc5647e  
    3535        'block/ddisk',
    3636        'block/isa-ide',
     37        'block/pc-floppy',
    3738        'block/pci-ide',
    3839        'block/usbmast',
  • uspace/lib/c/include/ddi.h

    re3997a8 rdc5647e  
    4747#include <task.h>
    4848
     49#define DMAMEM_1MiB   ((uintptr_t) UINT64_C(0xfffffffffff00000))
    4950#define DMAMEM_16MiB  ((uintptr_t) UINT64_C(0xffffffffff000000))
    5051#define DMAMEM_4GiB   ((uintptr_t) UINT64_C(0xffffffff00000000))
Note: See TracChangeset for help on using the changeset viewer.