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

37
CSA-5200
DESCRIPTION
This function defines functions for the watchdog device according to the available
features.
int ioctl(int handle, int cmd,[int *argdx, int argcx]) may be used in client to call this
feature.
PARAMETERS
handle [IN] File handle to the watchdog;
cmd [IN] Watchdog command, such as “WDIOC_xxx”;
argxx [IN/OUT] Argument pointer, such as“WDIOS_xxx”, only used after
WDIOC_SETOPTIONS.
RETURN
0: success
-1: error
6.2.4 release
The Watchdog Driver provides several ioctl options:
Closing the watchdog device either stops the watchdog timer or in the case that nowayout is
set or the magic character wasn't written, a critical warning about a running watchdog timer
will be given.
PROTOTYPE
static int release(struct inode *inode, struct file *file)
DESCRIPTION
This function is used to check whether the watchdog device closing is expected or not. This
feature will be called automatically when closing the watchdog device file “/dev/watchdog”.
6.3 Sample Code
The following sample code is provided to illustrate how the SuperIO Watchdog timer and
LAN bypass control can be implemented.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#define WDIOC_ENABLEBYPS _IOR(WATCHDOG_IOCTL_BASE, 101, int)
#define WDIOC_DISABLEBYPS _IOR(WATCHDOG_IOCTL_BASE, 102, int)
int fd;
/*
* This function simply sends an IOCTL to the driver, which in turn ticks