Module nic.occ

Index

Declarations

nic.occ:77Process nic.log

PROC nic.log (VAL []BYTE driver, VAL NIC.DEVICE dev, CHAN BYTE out!)

Writes <divername>.<index> to channel out. Used to prefix log messages, to show where they are from

Parameters:

VAL []BYTE driver Driver name.
VAL NIC.DEVICE dev The device this message is about.
CHAN BYTE out The channel to send the message (steam of bytes) to..

nic.occ:93Process nic.log.e

PROC nic.log.e (VAL []BYTE driver, CHAN BYTE out!)

Writes <divername>.<index> to channel out. Used to prefix log messages, to show where they are from

Parameters:

VAL []BYTE driver The device (name) this message is about.
CHAN BYTE out The channel to send the message (steam of bytes) to.

nic.occ:109Process nic.log.msg

PROC nic.log.msg (VAL []BYTE driver, VAL NIC.DEVICE dev, VAL []BYTE msg, SHARED LOG! log)

Writes a message to the system log. The message is prefixed with the driver name, and it's index.

Parameters:

VAL []BYTE driver Driver name.
VAL NIC.DEVICE dev The device which caused this message.
VAL []BYTE msg The message (string) to output.
SHARED LOG! log The log channel back to the kernel.

nic.occ:126Process nic.log.msg.e

PROC nic.log.msg.e (VAL []BYTE driver, VAL []BYTE msg, SHARED LOG! log)

Writes a message to the system log. The message is prefixed with the driver name, and it's index.

Parameters:

VAL []BYTE driver The device which caused this message.
VAL []BYTE msg The message (string) to output.
SHARED LOG! log The log channel back to the kernel.

nic.occ:145Process nic.w8

INLINE PROC nic.w8 (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Writes a byte (8bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL INT value The value to write to the register. The 8 least significant bits are used.

nic.occ:168Process nic.w16

INLINE PROC nic.w16 (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Writes a short (16bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL INT value The value to write to the register. The 16 least significant bits are used.

nic.occ:185Process nic.w32

INLINE PROC nic.w32 (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Writes a int (32bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL INT value The value to write to the register. The 32 least significant bits are used.

nic.occ:200Process nic.r8

INLINE PROC nic.r8 (VAL NIC.DEVICE dev, VAL INT reg, RESULT BYTE value)

Reads a byte (8bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT BYTE value The value to return.

nic.occ:211Process nic.r16

INLINE PROC nic.r16 (VAL NIC.DEVICE dev, VAL INT reg, RESULT INT value)

Reads a short (16bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT INT value The value to return.

nic.occ:226Process nic.r32

INLINE PROC nic.r32 (VAL NIC.DEVICE dev, VAL INT reg, RESULT INT value)

Reads an int (32bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT INT value The value to return.

nic.occ:238Process nic.w8.flush

INLINE PROC nic.w8.flush (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Flush a byte (8bits) into a register

nic.occ:247Process nic.w16.flush

INLINE PROC nic.w16.flush (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Flush a SHORT (16bits) into a register

nic.occ:256Process nic.w32.flush

INLINE PROC nic.w32.flush (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Flush a INT (32bits) into a register

nic.occ:271Process nic.out8

INLINE PROC nic.out8 (VAL NIC.DEVICE dev, VAL INT reg, VAL BYTE value)

Writes a byte (8bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL BYTE value The value to write to the register. The 8 least significant bits are used.

nic.occ:294Process nic.out16

INLINE PROC nic.out16 (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Writes a short (16bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL INT value The value to write to the register. The 16 least significant bits are used.

nic.occ:311Process nic.out32

INLINE PROC nic.out32 (VAL NIC.DEVICE dev, VAL INT reg, VAL INT value)

Writes a int (32bit word) to a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to write to
VAL INT reg The Register to write to
VAL INT value The value to write to the register. The 32 least significant bits are used.

nic.occ:326Process nic.in8

INLINE PROC nic.in8 (VAL NIC.DEVICE dev, VAL INT reg, RESULT BYTE value)

Reads a byte (8bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT BYTE value The value to return.

nic.occ:337Process nic.in16

INLINE PROC nic.in16 (VAL NIC.DEVICE dev, VAL INT reg, RESULT INT value)

Reads a short (16bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT INT value The value to return.

nic.occ:352Process nic.in32

INLINE PROC nic.in32 (VAL NIC.DEVICE dev, VAL INT reg, RESULT INT value)

Reads an int (32bit word) from a register on a nic

Parameters:

VAL NIC.DEVICE dev the device to read from
VAL INT reg The Register to read from
RESULT INT value The value to return.