-/* $OpenBSD: if_vio.c,v 1.13 2013/05/12 17:10:57 sf Exp $ */
+/* $OpenBSD: if_vio.c,v 1.14 2014/01/08 22:24:35 bluhm Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
*/
/*
* dynamically allocated memory is used for:
- * sc_rx_dmamaps[slot]: bus_dmamap_t array for recieved payload
+ * sc_rx_dmamaps[slot]: bus_dmamap_t array for received payload
* sc_tx_dmamaps[slot]: bus_dmamap_t array for sent payload
- * sc_rx_mbufs[slot]: mbuf pointer array for recieved frames
+ * sc_rx_mbufs[slot]: mbuf pointer array for received frames
* sc_tx_mbufs[slot]: mbuf pointer array for sent frames
*/
int
/*
* Recieve implementation
*/
-/* allocate and initialize a mbuf for recieve */
+/* allocate and initialize a mbuf for receive */
int
vio_add_rx_mbuf(struct vio_softc *sc, int i)
{
return 0;
}
-/* free a mbuf for recieve */
+/* free a mbuf for receive */
void
vio_free_rx_mbuf(struct vio_softc *sc, int i)
{
sc->sc_rx_mbufs[i] = NULL;
}
-/* add mbufs for all the empty recieve slots */
+/* add mbufs for all the empty receive slots */
void
vio_populate_rx_mbufs(struct vio_softc *sc)
{
virtio_notify(vsc, vq);
}
-/* dequeue recieved packets */
+/* dequeue received packets */
int
vio_rxeof(struct vio_softc *sc)
{
-/* $OpenBSD: if_axenreg.h,v 1.2 2013/11/26 20:33:18 deraadt Exp $ */
+/* $OpenBSD: if_axenreg.h,v 1.3 2014/01/08 22:24:35 bluhm Exp $ */
/*
* Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>. All right reserved.
#define AXEN_REV_UA2 1
-/* recieve header */
+/* receive header */
/*
* +-multicast/broadcast
* | +-rx_ok