[SeaBIOS] [PATCH 0/4] Move more hardware definitions to hw/ sub-directory

Kevin O'Connor kevin at koconnor.net
Thu Sep 19 03:57:51 CEST 2013


This series moves some additional hardware driver code from the main
src/ directory to files in the src/hw/ directory.  This is a minor
cleanup to gather more hardware driver code together.

This series is also at:
https://github.com/KevinOConnor/seabios/tree/testing

-Kevin


Kevin O'Connor (4):
  Move PIT setup from clock.c to hw/timer.c.
  Rename hw/cmos.h to hw/rtc.h and copy RTC code from clock.c to
    hw/rtc.c.
  Move dma code to new file hw/dma.c.
  Remove ioport.h; disperse its contents to other header files.

 Makefile                 |   2 +-
 src/apm.c                |   2 +-
 src/block.c              |   4 +-
 src/boot.c               |   8 +--
 src/clock.c              | 168 ++++++++++++++++-------------------------------
 src/farptr.h             |   2 +-
 src/fw/acpi.c            |   1 -
 src/fw/paravirt.c        |  17 +++--
 src/fw/paravirt.h        |   9 +++
 src/fw/pciinit.c         |   3 +-
 src/fw/smm.c             |   2 +-
 src/fw/smp.c             |   4 +-
 src/hw/ahci.c            |   2 +-
 src/hw/ata.c             |   3 +-
 src/hw/ata.h             |   5 ++
 src/hw/dma.c             |  67 +++++++++++++++++++
 src/hw/floppy.c          |  50 ++++----------
 src/hw/pci.c             |   1 -
 src/hw/pci.h             |   4 ++
 src/hw/pic.h             |   7 +-
 src/hw/pit.h             |  29 --------
 src/hw/ps2port.c         |   2 +-
 src/hw/ps2port.h         |  14 +++-
 src/hw/rtc.c             |  93 ++++++++++++++++++++++++++
 src/hw/{cmos.h => rtc.h} |  59 ++++++++---------
 src/hw/serialio.h        |  21 ++++++
 src/hw/timer.c           |  67 +++++++++++--------
 src/hw/usb-ehci.c        |   1 -
 src/hw/usb-uhci.c        |   2 +-
 src/hw/virtio-pci.h      |   2 +-
 src/ioport.h             | 136 --------------------------------------
 src/misc.c               |   2 +
 src/output.c             |   1 +
 src/post.c               |   4 +-
 src/resume.c             |  20 +-----
 src/romlayout.S          |   8 +--
 src/serial.c             |   1 +
 src/stacks.c             |   5 +-
 src/system.c             |   3 +-
 src/util.h               |  14 ++--
 src/x86.h                |  51 ++++++++++++++
 vgasrc/bochsvga.c        |  12 ++++
 vgasrc/bochsvga.h        |  12 ----
 vgasrc/stdvga.c          |   8 +--
 vgasrc/stdvgaio.c        |   4 +-
 45 files changed, 480 insertions(+), 452 deletions(-)
 create mode 100644 src/hw/dma.c
 delete mode 100644 src/hw/pit.h
 create mode 100644 src/hw/rtc.c
 rename src/hw/{cmos.h => rtc.h} (67%)
 create mode 100644 src/hw/serialio.h
 delete mode 100644 src/ioport.h

-- 
1.8.3.1




More information about the SeaBIOS mailing list