#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/gfp.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/nubus.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/bitrev.h>
#include <linux/slab.h>
#include <asm/bootinfo.h>
#include <asm/pgtable.h>
#include <asm/io.h>
#include <asm/hwtest.h>
#include <asm/dma.h>
#include <asm/macintosh.h>
#include <asm/macints.h>
#include <asm/mac_via.h>
#include "sonic.h"
#include "sonic.c"
Go to the source code of this file.
#define APPLE_SONIC_PROM_BASE 0x40000 |
#define APPLE_SONIC_REGISTERS 0 |
#define DAYNA_SONIC_MAC_ADDR 0xffe004 |
#define DAYNA_SONIC_REGISTERS 0x180000 |
#define DAYNALINK_PROM_BASE 0x400000 |
#define DUODOCK_SONIC_PROM_BASE 0xe12000 |
#define DUODOCK_SONIC_REGISTERS 0xe10000 |
#define INVALID_MAC |
( |
|
mac | ) |
|
Value:
memcmp(
mac,
"\x00\xA0\x40", 3) && \
memcmp(
mac,
"\x00\x80\x19", 3) && \
memcmp(
mac,
"\x00\x05\x02", 3))
Definition at line 243 of file macsonic.c.
#define ONBOARD_SONIC_PROM_BASE 0x50f08000 |
#define ONBOARD_SONIC_REGISTERS 0x50F0A000 |
#define SONIC_READ |
( |
|
reg | ) |
|
#define SONIC_WRITE |
( |
|
reg, |
|
|
|
val |
|
) |
| |
- Enumerator:
MACSONIC_DUODOCK |
|
MACSONIC_APPLE |
|
MACSONIC_APPLE16 |
|
MACSONIC_DAYNA |
|
MACSONIC_DAYNALINK |
|
Definition at line 89 of file macsonic.c.
MODULE_ALIAS |
( |
"platform:macsonic" |
| ) |
|
module_param |
( |
sonic_debug |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
sonic_debug |
, |
|
|
"macsonic debug level (1-4)" |
|
|
) |
| |
module_platform_driver |
( |
mac_sonic_driver |
| ) |
|