Skip to content

Commit

Permalink
Add various missing headers/declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
neuschaefer committed Nov 19, 2024
1 parent dc7cdbc commit 2a089a2
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arcgrackle/source/arctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "arc.h"
#include "arctime.h"
#include "timer.h"
#include "pxi.h"

enum {
RTC_TO_UNIX_DIFF = 2082844800,
Expand Down Expand Up @@ -73,4 +74,4 @@ void ArcTimeInit(void) {
PVENDOR_VECTOR_TABLE Api = ARC_VENDOR_VECTORS();
Api->GetTimeRoutine = ArcGetTime;
Api->GetRelativeTimeRoutine = ArcGetRelativeTime;
}
}
3 changes: 2 additions & 1 deletion arcgrackle/source/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "ide.h"
#include "hdreg.h"
#include "timer.h"

#define __be32_to_cpu(x) ((PU32BE)(ULONG)&(x))->v

Expand Down Expand Up @@ -1558,4 +1559,4 @@ int macio_ide_init(uint32_t addr, int nb_channels)
}

return 0;
}
}
1 change: 1 addition & 0 deletions arcgrackle/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "getstr.h"
//#include "ppchook.h"
#include "hwdesc.h"
#include "timer.h"

#include "pxi.h"
#include "usbheap.h"
Expand Down
2 changes: 2 additions & 0 deletions arcgrackle/source/usbhub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions arcgrackle/source/usbmsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions arcunin/source/arctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "arc.h"
#include "arctime.h"
#include "timer.h"
#include "pxi.h"

enum {
RTC_TO_UNIX_DIFF = 2082844800,
Expand Down
1 change: 1 addition & 0 deletions arcunin/source/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "ide.h"
#include "hdreg.h"
#include "timer.h"

#define __be32_to_cpu(x) ((PU32BE)(ULONG)&(x))->v

Expand Down
1 change: 1 addition & 0 deletions arcunin/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "getstr.h"
//#include "ppchook.h"
#include "hwdesc.h"
#include "timer.h"

#include "pxi.h"
#include "usbheap.h"
Expand Down
2 changes: 2 additions & 0 deletions arcunin/source/usbhub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions arcunin/source/usbmsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a089a2

Please sign in to comment.