]> git.sesse.net Git - pistorm/blobdiff - platforms/amiga/net/pi-net.c
Merge branch 'wip-crap' into main
[pistorm] / platforms / amiga / net / pi-net.c
index 857bc2c928af53ee576cca5ed78361cd946e7543..bc3b87ca48b4a05815f9977ca8e188b648586b9c 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 #include <stdio.h>
 #include <stdint.h>
 #include <fcntl.h>
@@ -5,8 +7,8 @@
 #include <endian.h>
 #include "pi-net.h"
 #include "pi-net-enums.h"
-#include "../../../config_file/config_file.h"
-#include "../../../gpio/ps_protocol.h"
+#include "config_file/config_file.h"
+#include "gpio/ps_protocol.h"
 
 uint32_t pinet_u32[4];
 static const char *op_type_names[4] = {
@@ -18,13 +20,18 @@ static const char *op_type_names[4] = {
 
 void pinet_init(char *dev) {
     // Initialize them nets.
+    (void)dev;
+}
+
+void pinet_shutdown() {
+    // Aaahh!
 }
 
 uint8_t PI_MAC[6] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 uint8_t PI_IP[4] = { 192, 168, 1, 9 };
 
 void handle_pinet_write(uint32_t addr, uint32_t val, uint8_t type) {
-    int32_t r;
+//    int32_t r;
 
     switch (addr & 0xFFFF) {
         case PINET_CMD_READ: