1 |
|
/* |
2 |
|
* ether_amiga.cpp - Ethernet device driver, AmigaOS specific stuff |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
25 |
|
#include <dos/dosextens.h> |
26 |
|
#include <dos/dostags.h> |
27 |
|
#include <devices/sana2.h> |
28 |
+ |
#define __USE_SYSBASE |
29 |
|
#include <proto/exec.h> |
30 |
|
#include <proto/dos.h> |
31 |
+ |
#include <inline/exec.h> |
32 |
+ |
#include <inline/dos.h> |
33 |
+ |
#include <clib/alib_protos.h> |
34 |
|
|
35 |
|
#include "sysdeps.h" |
36 |
|
#include "cpu_emulation.h" |
424 |
|
|
425 |
|
// Open device |
426 |
|
control_io->ios2_BufferManagement = buffer_tags; |
427 |
< |
od_error = OpenDevice((UBYTE *)dev_name, dev_unit, (struct IORequest *)control_io, 0); |
427 |
> |
od_error = OpenDevice((UBYTE *) dev_name, dev_unit, (struct IORequest *)control_io, 0); |
428 |
|
if (od_error != 0 || control_io->ios2_Req.io_Device == 0) { |
429 |
|
printf("WARNING: OpenDevice(<%s>, unit=%d) returned error %d)\n", (UBYTE *)dev_name, dev_unit, od_error); |
430 |
|
goto quit; |