linux/drivers/net/dsa/b53/b53_mmap.c

/*
 * B53 register access through memory mapped registers
 *
 * Copyright (C) 2012-2013 Jonas Gorski <[email protected]>
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <linux/bits.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/platform_data/b53.h>

#include "b53_priv.h"

struct b53_mmap_priv {};

static int b53_mmap_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val)
{}

static int b53_mmap_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val)
{}

static int b53_mmap_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val)
{}

static int b53_mmap_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val)
{}

static int b53_mmap_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val)
{}

static int b53_mmap_write8(struct b53_device *dev, u8 page, u8 reg, u8 value)
{}

static int b53_mmap_write16(struct b53_device *dev, u8 page, u8 reg,
			    u16 value)
{}

static int b53_mmap_write32(struct b53_device *dev, u8 page, u8 reg,
			    u32 value)
{}

static int b53_mmap_write48(struct b53_device *dev, u8 page, u8 reg,
			    u64 value)
{}

static int b53_mmap_write64(struct b53_device *dev, u8 page, u8 reg,
			    u64 value)
{}

static int b53_mmap_phy_read16(struct b53_device *dev, int addr, int reg,
			       u16 *value)
{}

static int b53_mmap_phy_write16(struct b53_device *dev, int addr, int reg,
				u16 value)
{}

static const struct b53_io_ops b53_mmap_ops =;

static int b53_mmap_probe_of(struct platform_device *pdev,
			     struct b53_platform_data **ppdata)
{}

static int b53_mmap_probe(struct platform_device *pdev)
{}

static void b53_mmap_remove(struct platform_device *pdev)
{}

static void b53_mmap_shutdown(struct platform_device *pdev)
{}

static const struct of_device_id b53_mmap_of_table[] =;
MODULE_DEVICE_TABLE(of, b53_mmap_of_table);

static struct platform_driver b53_mmap_driver =;

module_platform_driver();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();