Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
0e7d41b5
Commit
0e7d41b5
authored
Sep 06, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/wr-nic.h: rename to spec-nic.h
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
bf78627c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
11 deletions
+24
-11
spec-nic.h
kernel/spec-nic.h
+17
-7
wr-nic-core.c
kernel/wr-nic-core.c
+1
-2
wr-nic-eth.c
kernel/wr-nic-eth.c
+5
-1
wr-nic-gpio.c
kernel/wr-nic-gpio.c
+1
-1
No files found.
kernel/
wr
-nic.h
→
kernel/
spec
-nic.h
View file @
0e7d41b5
#ifndef __
WR
_NIC_H__
#define __
WR
_NIC_H__
#ifndef __
SPEC
_NIC_H__
#define __
SPEC
_NIC_H__
#include <linux/gpio.h>
/*
...
...
@@ -28,20 +28,30 @@
* -- 0x200: DIO-GPIO
* -- 0x300: DIO-REGISTERS
* (plus, at 63000 there are the sdb records)
*
* However, we are extracting this information from SDB
*/
#define WRN_SDB_ADDR 0x63000
#define WRN_GPIO 0x62200
/* "standard" GPIO registers */
#define WRN_DIO 0x62300
/* time-aware gpio registers */
#define WRN_SDB 0x63000
#define SDB_CERN 0xce42LL
#define SDB_7SOL 0x75cbLL
#define WRN_SDB_NIC 0x00000012
#define WRN_SDB_EP 0x650c2d4f
#define WRN_SDB_PPSG 0xde0d8ced
#define WRN_SDB_TS 0x00000014
#define WRN_SDB_GPIO 0x441c5143
#define WRN_SDB_WRDIO 0x00000001
#define WRN_GATEWARE_DEFAULT_NAME "fmc/wr_nic_dio.bin"
struct
wrn_drvdata
{
struct
gpio_chip
*
gc
;
struct
net_device
*
eth
;
struct
wrn_dev
*
wrn
;
struct
fmc_device
*
fmc
;
/* We also need the various base addresses here for fmc_writel/readl */
__iomem
void
*
gpio_baseaddr
;
__iomem
void
*
gpio_base
;
__iomem
void
*
wrdio_base
;
};
/* wr-nic-eth.c */
...
...
kernel/wr-nic-core.c
View file @
0e7d41b5
...
...
@@ -9,10 +9,9 @@
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/fmc.h>
#include <linux/fmc-sdb.h>
#include "
wr
-nic.h"
#include "
spec
-nic.h"
#include "spec.h"
static
struct
fmc_driver
wrn_drv
;
...
...
kernel/wr-nic-eth.c
View file @
0e7d41b5
...
...
@@ -9,8 +9,12 @@
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/fmc.h>
#include "wr-nic.h"
#include <linux/fmc-sdb.h>
#include "spec-nic.h"
#include "wr_nic/wr-nic.h"
#include "spec.h"
int
wrn_eth_init
(
struct
fmc_device
*
fmc
)
...
...
kernel/wr-nic-gpio.c
View file @
0e7d41b5
...
...
@@ -13,7 +13,7 @@
#include <linux/gpio.h>
#include <linux/fmc.h>
#include "spec.h"
#include "
wr
-nic.h"
#include "
spec
-nic.h"
static
inline
struct
fmc_device
*
gc_to_fmc
(
struct
gpio_chip
*
gc
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment