Module Name: src Committed By: mrg Date: Sun Aug 11 01:29:45 UTC 2019
Modified Files: src/sys/dev/usb: usbnet.h Log Message: adjust some comments to reality. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/usb/usbnet.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usbnet.h diff -u src/sys/dev/usb/usbnet.h:1.9 src/sys/dev/usb/usbnet.h:1.10 --- src/sys/dev/usb/usbnet.h:1.9 Sat Aug 10 02:17:36 2019 +++ src/sys/dev/usb/usbnet.h Sun Aug 11 01:29:45 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: usbnet.h,v 1.9 2019/08/10 02:17:36 mrg Exp $ */ +/* $NetBSD: usbnet.h,v 1.10 2019/08/11 01:29:45 mrg Exp $ */ /* * Copyright (c) 2019 Matthew R. Green @@ -100,10 +100,11 @@ #include <dev/usb/usbdevs.h> /* - * Per-transfer data, initialised in usbnet_[rt]x_list_init(). + * Per-transfer data. * - * Front-end must set uncd_tx_list_cnt and uncd_rx_list_cnt before calling - * list init, which will allocate the chain arrays, and must be NULL to + * Front-end must set un_rx_list_cnt and un_tx_list_cnt before + * calling usbnet_attach(), and then call usbnet_rx_tx_init() + * which will allocate the chain arrays, and must be NULL to * indicate the first call. */ struct usbnet; @@ -276,7 +277,7 @@ usbnet_isowned_tx(struct usbnet *un) /* * Endpoint / rx/tx chain management: * - * usbnet_attach() allocates rx and tx chains + * usbnet_attach() initialises usbnet and allocates rx and tx chains * usbnet_init_rx_tx() open pipes, initialises the rx/tx chains for use * usbnet_stop() stops pipes, cleans (not frees) rx/tx chains, locked * version assumes un_lock is held