#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/ptp_clock_kernel.h>
#include <linux/slab.h>
Go to the source code of this file.
#define DEFAULT_ADDEND 0xA0000000 |
#define PCH_CC_MM (1 << 0) |
#define PCH_CC_MODE_MASK 0x001F0000 |
#define PCH_CC_MODE_SHIFT 16 |
#define PCH_CC_TA (1 << 1) |
#define PCH_CC_VERSION (1 << 31) |
#define PCH_CE_OVR (1 << 0) |
#define PCH_CE_RXS (1 << 1) |
#define PCH_CE_TXS (1 << 0) |
#define PCH_CE_VAL (1 << 1) |
#define PCH_ECS_CAN (1 << 1) |
#define PCH_ECS_ETH (1 << 0) |
#define PCH_IEEE1588_CAN (1 << 1) |
#define PCH_IEEE1588_ETH (1 << 0) |
#define PCH_STATION_BYTES 6 |
#define PCH_TSC_AMMS_MASK (1 << 3) |
#define PCH_TSC_ASMS_MASK (1 << 2) |
#define PCH_TSC_PPSM_MASK (1 << 4) |
#define PCH_TSC_RESET (1 << 0) |
#define PCH_TSC_TTM_MASK (1 << 1) |
#define PCH_TSE_PPS (1 << 4) |
#define PCH_TSE_SNM (1 << 3) |
#define PCH_TSE_SNS (1 << 2) |
#define PCH_TSE_TTIPEND (1 << 1) |
#define PCI_DEVICE_ID_PCH_1588 0x8819 |
#define STATION_ADDR_LEN 20 |
- Enumerator:
PCH_SUCCESS |
|
PCH_INVALIDPARAM |
|
PCH_NOTIMESTAMP |
|
PCH_INTERRUPTMODEINUSE |
|
PCH_FAILED |
|
PCH_UNSUPPORTED |
|
Definition at line 43 of file ptp_pch.c.
MODULE_AUTHOR |
( |
"LAPIS |
SEMICONDUCTOR, |
|
|
< tshimizu818 @gmail.com >" |
|
|
) |
| |
module_exit |
( |
ptp_pch_exit |
| ) |
|
module_init |
( |
ptp_pch_init |
| ) |
|
module_param_string |
( |
station |
, |
|
|
pch_param. |
station, |
|
|
sizeof pch_param. |
station, |
|
|
0444 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
station |
, |
|
|
"IEEE 1588 station address to use - column separated hex values" |
|
|
) |
| |