From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/QemuMacDrivers/shared/LinuxOSIDefs.s | 76 +++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 roms/QemuMacDrivers/shared/LinuxOSIDefs.s (limited to 'roms/QemuMacDrivers/shared/LinuxOSIDefs.s') diff --git a/roms/QemuMacDrivers/shared/LinuxOSIDefs.s b/roms/QemuMacDrivers/shared/LinuxOSIDefs.s new file mode 100644 index 000000000..d39d1954a --- /dev/null +++ b/roms/QemuMacDrivers/shared/LinuxOSIDefs.s @@ -0,0 +1,76 @@ +; +; Linux interface magic +; + +OSI_SC_MAGIC_R3: set 0x113724FA +OSI_SC_MAGIC_R4: set 0x77810F9B + + MACRO + osi_call &selector + li r3,0x24FA + addis r3,r3,0x1137 + li r4,0x0F9B + addis r4,r4,0x7781 + li r5,&selector + sc + ENDM + +; +; Selectors +; + +OSI_DEBUGGER set 1 +OSI_CMOUNT_DRV_VOL set 4 + +OSI_MOUSE_CNTRL set 8 +OSI_GET_DATE set 9 + +OSI_ENET_OPEN set 10 +OSI_ENET_CLOSE set 11 +OSI_ENET_GET_ADDR set 12 +OSI_ENET_GET_STATUS set 13 +OSI_ENET_CONTROL set 14 +OSI_ENET_ADD_MULTI set 16 +OSI_ENET_DEL_MULTI set 17 +OSI_ENET_GET_PACKET set 18 +OSI_ENET_SEND_PACKET set 19 + +OSI_SCSI_CNTRL set 23 +OSI_SCSI_SUBMIT set 24 +OSI_SCSI_ACK set 25 + +OSI_GET_MOUSE set 26 ; void -- r4-r7 mouse data, r3 status +OSI_MOUSE_ACK_IRQ set 27 + +OSI_SET_VMODE set 28 ; vmode, depthmode -- err +OSI_GET_VMODE_INFO set 29 ; int modeID -- r3-status, r4-r7 osi_get_next_vmode_t +OSI_GET_MOUSE_DPI set 30 ; -- mouse dpi + +OSI_SET_VIDEO_POWER set 31 ; set VESA DPMS (Energy Star) state on console-video + +OSI_SOUND_WRITE set 33 +OSI_SOUND_SET_VOLUME set 35 +OSI_SOUND_CNTL set 36 + +OSI_VIDEO_ACK_IRQ set 38 +OSI_VIDEO_CNTRL set 39 + +OSI_SOUND_IRQ_ACK set 40 +OSI_SOUND_START_STOP set 41 + +OSI_REGISTER_IRQ set 42 ; first_word_of_reg_property -- irq_cookie + +OSI_LOG_PUTC set 47 + +OSI_SET_COLOR set 59 +OSI_GET_COLOR set 64 + +OSI_IRQTEST set 65 + +OSI_ABLK_RING_SETUP set 79 +OSI_ABLK_CNTRL set 80 +OSI_ABLK_DISK_INFO set 81 +OSI_ABLK_KICK set 82 +OSI_ABLK_IRQ_ACK set 83 +OSI_ABLK_SYNC_READ set 84 +OSI_ABLK_SYNC_WRITE set 85 -- cgit 1.2.3-korg