if_bm.c (180233) | if_bm.c (182670) |
---|---|
1/*- 2 * Copyright 2008 Nathan Whitehorn. All rights reserved. 3 * Copyright 2003 by Peter Grehan. All rights reserved. 4 * Copyright (C) 1998, 1999, 2000 Tsubai Masanari. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 22 unchanged lines hidden (view full) --- 31 */ 32 33/* 34 * BMAC/BMAC+ Macio cell 10/100 ethernet driver 35 * The low-cost, low-feature Apple variant of the Sun HME 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright 2008 Nathan Whitehorn. All rights reserved. 3 * Copyright 2003 by Peter Grehan. All rights reserved. 4 * Copyright (C) 1998, 1999, 2000 Tsubai Masanari. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 22 unchanged lines hidden (view full) --- 31 */ 32 33/* 34 * BMAC/BMAC+ Macio cell 10/100 ethernet driver 35 * The low-cost, low-feature Apple variant of the Sun HME 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/dev/bm/if_bm.c 180233 2008-07-03 21:51:30Z nwhitehorn $"); | 39__FBSDID("$FreeBSD: head/sys/dev/bm/if_bm.c 182670 2008-09-02 02:50:52Z nwhitehorn $"); |
40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/sockio.h> 44#include <sys/endian.h> 45#include <sys/mbuf.h> 46#include <sys/module.h> 47#include <sys/malloc.h> --- 636 unchanged lines hidden (view full) --- 684 bcopy(sc->sc_enaddr, 685 mtod(m, struct ether_header *)->ether_shost, ETHER_ADDR_LEN); 686 mtod(m, struct ether_header *)->ether_type = htons(3); 687 mtod(m, unsigned char *)[14] = 0; 688 mtod(m, unsigned char *)[15] = 0; 689 mtod(m, unsigned char *)[16] = 0xE3; 690 m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3; 691 IF_ENQUEUE(&ifp->if_snd, m); | 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/sockio.h> 44#include <sys/endian.h> 45#include <sys/mbuf.h> 46#include <sys/module.h> 47#include <sys/malloc.h> --- 636 unchanged lines hidden (view full) --- 684 bcopy(sc->sc_enaddr, 685 mtod(m, struct ether_header *)->ether_shost, ETHER_ADDR_LEN); 686 mtod(m, struct ether_header *)->ether_type = htons(3); 687 mtod(m, unsigned char *)[14] = 0; 688 mtod(m, unsigned char *)[15] = 0; 689 mtod(m, unsigned char *)[16] = 0xE3; 690 m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3; 691 IF_ENQUEUE(&ifp->if_snd, m); |
692 bm_start(ifp); | 692 bm_start_locked(ifp); |
693} 694 695static void 696bm_rxintr(void *xsc) 697{ 698 struct bm_softc *sc = xsc; 699 struct ifnet *ifp = sc->sc_ifp; 700 struct mbuf *m; --- 740 unchanged lines hidden --- | 693} 694 695static void 696bm_rxintr(void *xsc) 697{ 698 struct bm_softc *sc = xsc; 699 struct ifnet *ifp = sc->sc_ifp; 700 struct mbuf *m; --- 740 unchanged lines hidden --- |