Instruction Manual
Table Of Contents
- CSA-5200
- Revision History
- Table of Contents
- 1 Overview
- 2 Specifications
- 3 Getting Started
- 4 System Interfaces
- 4.1 Front Panel I/O
- 4.2 Board Layout
- 4.3 Connectors and Jumpers
- 4.3.1 PCIe x4 Connector (PCIE1)
- 4.3.2 CFast Connector (CN17)
- 4.3.3 VGA Header (CNX1)
- 4.3.4 ATX12V Connector (CN24)
- 4.3.5 Fan Connectors (FAN1/FAN6-9)
- 4.3.6 ATX Connector (CN19)
- 4.3.7 mSATA Connectors (CN9/CN48)
- 4.3.8 SATA Connectors (CN30-33)
- 4.3.9 SATADOM Power Connector (CN18, Wafer 1.25mm pitch)
- Clear CMOS Jumper (JBAT1)
- 4.3.11 NIM Slot connectors (PCI1-4)
- 5 LAN Bypass Function
- 6 Watchdog Timer Programming
- 7 BIOS Setup
- Safety Instructions
- Consignes de Sécurité Importantes
- Getting Service

36
CSA-5200
PROTOTYPE
static ssize_t write(struct file *file, const char __user *data,size_t len, loff_t *ppos)
DESCRIPTION
This function is used to write information to be given to watchdog device.
int write(int handle, void *buf, int nbyte) may be used in client to call this feature.
PARAMETERS
handle [IN] File handle to the watchdog;
buf [IN] Buffer to write;
nbyte [IN] Count of bytes;
RETURN
Number of bytes actually written: success
-1: error
6.2.3 ioctl
The Watchdog Driver provides several ioctl options:
WDIOS_DISABLECARD, used to turn off the watchdog timer. The Watchdog Driver support
module parameter WATCHDOG_NOWAYOUT. If it is set, there is no way of disabling the
watchdog once it has been started. So, if the watchdog daemon crashes, the system will
reboot after the timeout has passed.
WDIOS_ENABLECARD, used to turn on the watchdog timer.
WDIOC_SETOPTIONS, used to set the watchdog status.
WDIOC_GETSTATUS, used to determines the status supported by watchdog ioctl. The
status bit of the device does not allow distinguishing between a regular system reset and a
watchdog forced reset. But, in test mode it is useful, so it is supported through
WDIOC_GETSTATUS watchdog ioctl. Additionally the driver reports the keepalive signal and
the acception of the magic.
WDIOC_SETTIMEOUT, used to change the watchdog timeout parameter (1s-255s). The
Watchdog Driver support module parameter DEFAULT_TIMEOUT. If it set then the
Watchdog Driver will use it as the watchdog timeout parameter. If it is not set, the default
watchdog timeout parameter is 5s.
WDIOC_GETTIMEOUT, used to query the watchdog timeout parameter.
WDIOC_KEEPALIVE, used to feed the watchdog, just like the write () interface.
WDIOC_ENABLEBYPS, which is a custom command, used to enable the LAN bypass.
Defined as below:
#define WDIOC_ENABLEBYPS _IOR(WATCHDOG_IOCTL_BASE, 101, int)
WDIOC_DISABLEBYPS, which is a custom command, used to disable the LAN bypass.
Defined as below:
#define WDIOC_DISABLEBYPS _IOR(WATCHDOG_IOCTL_BASE, 102, int)
PROTOTYPE
static long ioctl(struct file *file, unsigned int cmd, unsigned long arg)