Commit 0e7d41b5 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/wr-nic.h: rename to spec-nic.h

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent bf78627c
#ifndef __WR_NIC_H__ #ifndef __SPEC_NIC_H__
#define __WR_NIC_H__ #define __SPEC_NIC_H__
#include <linux/gpio.h> #include <linux/gpio.h>
/* /*
...@@ -28,20 +28,30 @@ ...@@ -28,20 +28,30 @@
* -- 0x200: DIO-GPIO * -- 0x200: DIO-GPIO
* -- 0x300: DIO-REGISTERS * -- 0x300: DIO-REGISTERS
* (plus, at 63000 there are the sdb records) * (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 SDB_CERN 0xce42LL
#define WRN_DIO 0x62300 /* time-aware gpio registers */ #define SDB_7SOL 0x75cbLL
#define WRN_SDB 0x63000
#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" #define WRN_GATEWARE_DEFAULT_NAME "fmc/wr_nic_dio.bin"
struct wrn_drvdata { struct wrn_drvdata {
struct gpio_chip *gc; 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 */ /* 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 */ /* wr-nic-eth.c */
......
...@@ -9,10 +9,9 @@ ...@@ -9,10 +9,9 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/fmc.h> #include <linux/fmc.h>
#include <linux/fmc-sdb.h> #include <linux/fmc-sdb.h>
#include "wr-nic.h" #include "spec-nic.h"
#include "spec.h" #include "spec.h"
static struct fmc_driver wrn_drv; static struct fmc_driver wrn_drv;
......
...@@ -9,8 +9,12 @@ ...@@ -9,8 +9,12 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/fmc.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" #include "spec.h"
int wrn_eth_init(struct fmc_device *fmc) int wrn_eth_init(struct fmc_device *fmc)
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/fmc.h> #include <linux/fmc.h>
#include "spec.h" #include "spec.h"
#include "wr-nic.h" #include "spec-nic.h"
static inline struct fmc_device *gc_to_fmc(struct gpio_chip *gc) static inline struct fmc_device *gc_to_fmc(struct gpio_chip *gc)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment