diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-01-12 06:42:49 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-01-12 06:42:49 +0000 |
commit | 2ef1bf84237e02ed89219bd01b051b13f3d493bc (patch) | |
tree | 7d20ab65c001c02758862a909e5060b277884775 /sys/dev/ep/if_epreg.h | |
parent | ce45af054b56462d8a4f194a3600ef0038ac6a31 (diff) | |
download | FreeBSD-src-2ef1bf84237e02ed89219bd01b051b13f3d493bc.zip FreeBSD-src-2ef1bf84237e02ed89219bd01b051b13f3d493bc.tar.gz |
Speedup if_start routine a little. TX threshold logic needs some more
kicking but these changes get me around 1000 KB/sec.
Diffstat (limited to 'sys/dev/ep/if_epreg.h')
-rw-r--r-- | sys/dev/ep/if_epreg.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/ep/if_epreg.h b/sys/dev/ep/if_epreg.h index aec663c..5fa60aa 100644 --- a/sys/dev/ep/if_epreg.h +++ b/sys/dev/ep/if_epreg.h @@ -231,6 +231,15 @@ * ****************************************/ +/* + * Command parameter that disables threshold interrupts + * PIO (3c509) cards use 2044. The fifo word-oriented and 2044--2047 work. + * "busmastering" cards need 8188. + * The implicit two-bit upshift done by busmastering cards means + * a value of 2047 disables threshold interrupts on both. + */ +#define EP_THRESH_DISABLE 2047 + /* * Command register. All windows. * |