From 2a089a21c62bc88563a706cf9b7ee7503defeb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Mon, 4 Nov 2024 15:06:58 +0100 Subject: [PATCH] Add various missing headers/declarations --- arcgrackle/source/arctime.c | 3 ++- arcgrackle/source/ide.c | 3 ++- arcgrackle/source/main.c | 1 + arcgrackle/source/usbhub.c | 2 ++ arcgrackle/source/usbmsc.c | 2 ++ arcunin/source/arctime.c | 1 + arcunin/source/ide.c | 1 + arcunin/source/main.c | 1 + arcunin/source/usbhub.c | 2 ++ arcunin/source/usbmsc.c | 2 ++ 10 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arcgrackle/source/arctime.c b/arcgrackle/source/arctime.c index 1ca0595..d3f264c 100644 --- a/arcgrackle/source/arctime.c +++ b/arcgrackle/source/arctime.c @@ -8,6 +8,7 @@ #include "arc.h" #include "arctime.h" #include "timer.h" +#include "pxi.h" enum { RTC_TO_UNIX_DIFF = 2082844800, @@ -73,4 +74,4 @@ void ArcTimeInit(void) { PVENDOR_VECTOR_TABLE Api = ARC_VENDOR_VECTORS(); Api->GetTimeRoutine = ArcGetTime; Api->GetRelativeTimeRoutine = ArcGetRelativeTime; -} \ No newline at end of file +} diff --git a/arcgrackle/source/ide.c b/arcgrackle/source/ide.c index 93e942b..36ba767 100644 --- a/arcgrackle/source/ide.c +++ b/arcgrackle/source/ide.c @@ -21,6 +21,7 @@ #include "ide.h" #include "hdreg.h" +#include "timer.h" #define __be32_to_cpu(x) ((PU32BE)(ULONG)&(x))->v @@ -1558,4 +1559,4 @@ int macio_ide_init(uint32_t addr, int nb_channels) } return 0; -} \ No newline at end of file +} diff --git a/arcgrackle/source/main.c b/arcgrackle/source/main.c index e85709d..59602dc 100644 --- a/arcgrackle/source/main.c +++ b/arcgrackle/source/main.c @@ -18,6 +18,7 @@ #include "getstr.h" //#include "ppchook.h" #include "hwdesc.h" +#include "timer.h" #include "pxi.h" #include "usbheap.h" diff --git a/arcgrackle/source/usbhub.c b/arcgrackle/source/usbhub.c index 2761076..7d65762 100644 --- a/arcgrackle/source/usbhub.c +++ b/arcgrackle/source/usbhub.c @@ -29,6 +29,8 @@ #include "usb.h" +void fatal(const char* ptr); + // assume that host_to_device is overwritten if necessary #define DR_PORT gen_bmRequestType(host_to_device, class_type, other_recp) #define PORT_RESET 0x4 diff --git a/arcgrackle/source/usbmsc.c b/arcgrackle/source/usbmsc.c index f993169..fc979cb 100644 --- a/arcgrackle/source/usbmsc.c +++ b/arcgrackle/source/usbmsc.c @@ -34,6 +34,8 @@ #include "pxi.h" +void fatal(const char* ptr); + #define htonl(x) __builtin_bswap32(x) #define ntohl(x) __builtin_bswap32(x) #define htonw(x) __builtin_bswap16(x) diff --git a/arcunin/source/arctime.c b/arcunin/source/arctime.c index 1ca0595..b4faf77 100644 --- a/arcunin/source/arctime.c +++ b/arcunin/source/arctime.c @@ -8,6 +8,7 @@ #include "arc.h" #include "arctime.h" #include "timer.h" +#include "pxi.h" enum { RTC_TO_UNIX_DIFF = 2082844800, diff --git a/arcunin/source/ide.c b/arcunin/source/ide.c index f59de85..9adcb86 100644 --- a/arcunin/source/ide.c +++ b/arcunin/source/ide.c @@ -21,6 +21,7 @@ #include "ide.h" #include "hdreg.h" +#include "timer.h" #define __be32_to_cpu(x) ((PU32BE)(ULONG)&(x))->v diff --git a/arcunin/source/main.c b/arcunin/source/main.c index 9857a15..8db7d66 100644 --- a/arcunin/source/main.c +++ b/arcunin/source/main.c @@ -18,6 +18,7 @@ #include "getstr.h" //#include "ppchook.h" #include "hwdesc.h" +#include "timer.h" #include "pxi.h" #include "usbheap.h" diff --git a/arcunin/source/usbhub.c b/arcunin/source/usbhub.c index 2761076..7d65762 100644 --- a/arcunin/source/usbhub.c +++ b/arcunin/source/usbhub.c @@ -29,6 +29,8 @@ #include "usb.h" +void fatal(const char* ptr); + // assume that host_to_device is overwritten if necessary #define DR_PORT gen_bmRequestType(host_to_device, class_type, other_recp) #define PORT_RESET 0x4 diff --git a/arcunin/source/usbmsc.c b/arcunin/source/usbmsc.c index f993169..fc979cb 100644 --- a/arcunin/source/usbmsc.c +++ b/arcunin/source/usbmsc.c @@ -34,6 +34,8 @@ #include "pxi.h" +void fatal(const char* ptr); + #define htonl(x) __builtin_bswap32(x) #define ntohl(x) __builtin_bswap32(x) #define htonw(x) __builtin_bswap16(x)