mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Add a macro tweak.
PR: 6932 Submitted by: Nick Sayer <nsayer@quack.kfu.com>
This commit is contained in:
parent
8c0b8289ef
commit
396ffb2e6b
4 changed files with 10 additions and 8 deletions
|
|
@ -30,7 +30,7 @@
|
|||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.c,v 1.71 1998/06/07 17:10:56 dfr Exp $
|
||||
* $Id: si.c,v 1.72 1998/06/10 12:49:54 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
|
@ -793,7 +793,7 @@ siattach(id)
|
|||
|
||||
/* OK, now lets download the download code */
|
||||
|
||||
if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) {
|
||||
if (SI_ISJET(sc->sc_type)) {
|
||||
DPRINT((0, DBG_DOWNLOAD, "si%d: jet_download: nbytes %d\n",
|
||||
id->id_unit, si3_t225_dsize));
|
||||
si_bcopy(si3_t225_download, maddr + si3_t225_downloadaddr,
|
||||
|
|
@ -889,7 +889,7 @@ siattach(id)
|
|||
sc->sc_type = SIEMPTY;
|
||||
return 0;
|
||||
case 1:
|
||||
if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) {
|
||||
if (SI_ISJET(sc->sc_type)) {
|
||||
/* set throttle to 100 times per second */
|
||||
regp->int_count = JET_INT_COUNT;
|
||||
/* rx_intr_count is a NOP in Jet */
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.h,v 1.11 1998/03/21 06:17:14 peter Exp $
|
||||
* $Id: si.h,v 1.12 1998/03/23 16:27:43 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/callout.h>
|
||||
|
|
@ -95,6 +95,7 @@
|
|||
#define SIJETPCI 6
|
||||
#define SIJETISA 7
|
||||
|
||||
#define SI_ISJET(x) (((x) == SIJETPCI) || ((x) == SIJETISA))
|
||||
|
||||
/* Buffer parameters */
|
||||
#define SI_BUFFERSIZE 256
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.h,v 1.11 1998/03/21 06:17:14 peter Exp $
|
||||
* $Id: si.h,v 1.12 1998/03/23 16:27:43 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/callout.h>
|
||||
|
|
@ -95,6 +95,7 @@
|
|||
#define SIJETPCI 6
|
||||
#define SIJETISA 7
|
||||
|
||||
#define SI_ISJET(x) (((x) == SIJETPCI) || ((x) == SIJETISA))
|
||||
|
||||
/* Buffer parameters */
|
||||
#define SI_BUFFERSIZE 256
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.c,v 1.71 1998/06/07 17:10:56 dfr Exp $
|
||||
* $Id: si.c,v 1.72 1998/06/10 12:49:54 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
|
@ -793,7 +793,7 @@ siattach(id)
|
|||
|
||||
/* OK, now lets download the download code */
|
||||
|
||||
if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) {
|
||||
if (SI_ISJET(sc->sc_type)) {
|
||||
DPRINT((0, DBG_DOWNLOAD, "si%d: jet_download: nbytes %d\n",
|
||||
id->id_unit, si3_t225_dsize));
|
||||
si_bcopy(si3_t225_download, maddr + si3_t225_downloadaddr,
|
||||
|
|
@ -889,7 +889,7 @@ siattach(id)
|
|||
sc->sc_type = SIEMPTY;
|
||||
return 0;
|
||||
case 1:
|
||||
if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) {
|
||||
if (SI_ISJET(sc->sc_type)) {
|
||||
/* set throttle to 100 times per second */
|
||||
regp->int_count = JET_INT_COUNT;
|
||||
/* rx_intr_count is a NOP in Jet */
|
||||
|
|
|
|||
Loading…
Reference in a new issue