macmace.c (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) macmace.c (e6ce3822a9f264b3f24c1acdc624131fb014f2f0)
1/*
2 * Driver for the Macintosh 68K onboard MACE controller with PSC
3 * driven DMA. The MACE driver code is derived from mace.c. The
4 * Mac68k theory of operation is courtesy of the MacBSD wizards.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 75 unchanged lines hidden (view full) ---

84 u8 data[1];
85 /* And frame continues.. */
86};
87
88#define PRIV_BYTES sizeof(struct mace_data)
89
90static int mace_open(struct net_device *dev);
91static int mace_close(struct net_device *dev);
1/*
2 * Driver for the Macintosh 68K onboard MACE controller with PSC
3 * driven DMA. The MACE driver code is derived from mace.c. The
4 * Mac68k theory of operation is courtesy of the MacBSD wizards.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 75 unchanged lines hidden (view full) ---

84 u8 data[1];
85 /* And frame continues.. */
86};
87
88#define PRIV_BYTES sizeof(struct mace_data)
89
90static int mace_open(struct net_device *dev);
91static int mace_close(struct net_device *dev);
92static int mace_xmit_start(struct sk_buff *skb, struct net_device *dev);
92static netdev_tx_t mace_xmit_start(struct sk_buff *skb, struct net_device *dev);
93static void mace_set_multicast(struct net_device *dev);
94static int mace_set_address(struct net_device *dev, void *addr);
95static void mace_reset(struct net_device *dev);
96static irqreturn_t mace_interrupt(int irq, void *dev_id);
97static irqreturn_t mace_dma_intr(int irq, void *dev_id);
98static void mace_tx_timeout(struct net_device *dev);
99static void __mace_set_address(struct net_device *dev, void *addr);
100

--- 338 unchanged lines hidden (view full) ---

439
440 return 0;
441}
442
443/*
444 * Transmit a frame
445 */
446
93static void mace_set_multicast(struct net_device *dev);
94static int mace_set_address(struct net_device *dev, void *addr);
95static void mace_reset(struct net_device *dev);
96static irqreturn_t mace_interrupt(int irq, void *dev_id);
97static irqreturn_t mace_dma_intr(int irq, void *dev_id);
98static void mace_tx_timeout(struct net_device *dev);
99static void __mace_set_address(struct net_device *dev, void *addr);
100

--- 338 unchanged lines hidden (view full) ---

439
440 return 0;
441}
442
443/*
444 * Transmit a frame
445 */
446
447static int mace_xmit_start(struct sk_buff *skb, struct net_device *dev)
447static netdev_tx_t mace_xmit_start(struct sk_buff *skb, struct net_device *dev)
448{
449 struct mace_data *mp = netdev_priv(dev);
450 unsigned long flags;
451
452 /* Stop the queue since there's only the one buffer */
453
454 local_irq_save(flags);
455 netif_stop_queue(dev);

--- 315 unchanged lines hidden ---
448{
449 struct mace_data *mp = netdev_priv(dev);
450 unsigned long flags;
451
452 /* Stop the queue since there's only the one buffer */
453
454 local_irq_save(flags);
455 netif_stop_queue(dev);

--- 315 unchanged lines hidden ---