mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Add perout offset and stride defines
This commit is contained in:
parent
f642bb7f7e
commit
8aeea9e110
@ -93,6 +93,9 @@ either expressed or implied, of The Regents of the University of California.
|
||||
#define MQNIC_PHC_REG_PTP_ADJ_COUNT 0x0058
|
||||
#define MQNIC_PHC_REG_PTP_ADJ_ACTIVE 0x005C
|
||||
|
||||
#define MQNIC_PHC_PEROUT_OFFSET 0x60
|
||||
#define MQNIC_PHC_PEROUT_STRIDE 0x40
|
||||
|
||||
#define MQNIC_PHC_REG_PEROUT_CTRL 0x0000
|
||||
#define MQNIC_PHC_REG_PEROUT_STATUS 0x0004
|
||||
#define MQNIC_PHC_REG_PEROUT_START_FNS 0x0010
|
||||
|
@ -168,7 +168,7 @@ static int mqnic_phc_perout(struct ptp_clock_info *ptp, int on, struct ptp_perou
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
hw_addr = mdev->phc_hw_addr + 0x60;
|
||||
hw_addr = mdev->phc_hw_addr + MQNIC_PHC_PEROUT_OFFSET;
|
||||
|
||||
if (!on)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user