ableos/sysdata/programs/ps2_driver/src/port.hb

21 lines
319 B
Plaintext
Raw Normal View History

2024-11-17 14:30:58 -06:00
.{DeviceID, NO_DEVICE} := @use("devices.hb")
2024-11-17 04:17:32 -06:00
State := struct {s: u8}
2024-11-17 10:57:06 -06:00
$Recive := State.(0)
$Reboot := State.(1)
2024-11-17 04:17:32 -06:00
Port := packed struct {
exists: bool,
device: DeviceID,
2024-11-17 14:30:58 -06:00
packet: [u8; 8],
2024-11-17 10:57:06 -06:00
packet_length: u8,
2024-11-17 14:30:58 -06:00
can_hot_plug: bool,
2024-11-17 04:17:32 -06:00
}
2024-11-17 14:30:58 -06:00
$PORT_AT_STARTUP := Port.(
2024-11-17 04:17:32 -06:00
true,
2024-11-17 14:30:58 -06:00
NO_DEVICE,
2024-11-17 15:38:07 -06:00
.(0, 0, 0, 0, 0, 0, 0, 0),
2024-11-17 10:57:06 -06:00
0,
2024-11-17 14:30:58 -06:00
true,
2024-11-17 04:17:32 -06:00
)