forked from Minki/linux
1a59d1b8e0
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 59 temple place suite 330 boston ma 02111 1307 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1334 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Filename: rsXX_cfg.h
|
|
*
|
|
* Authors: Joshua Morris <josh.h.morris@us.ibm.com>
|
|
* Philip Kelleher <pjk1939@linux.vnet.ibm.com>
|
|
*
|
|
* (C) Copyright 2013 IBM Corporation
|
|
*/
|
|
|
|
#ifndef __RSXX_CFG_H__
|
|
#define __RSXX_CFG_H__
|
|
|
|
/* NOTE: Config values will be saved in network byte order (i.e. Big endian) */
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* The card config version must match the driver's expected version. If it does
|
|
* not, the DMA interfaces will not be attached and the user will need to
|
|
* initialize/upgrade the card configuration using the card config utility.
|
|
*/
|
|
#define RSXX_CFG_VERSION 4
|
|
|
|
struct card_cfg_hdr {
|
|
__u32 version;
|
|
__u32 crc;
|
|
};
|
|
|
|
struct card_cfg_data {
|
|
__u32 block_size;
|
|
__u32 stripe_size;
|
|
__u32 vendor_id;
|
|
__u32 cache_order;
|
|
struct {
|
|
__u32 mode; /* Disabled, manual, auto-tune... */
|
|
__u32 count; /* Number of intr to coalesce */
|
|
__u32 latency;/* Max wait time (in ns) */
|
|
} intr_coal;
|
|
};
|
|
|
|
struct rsxx_card_cfg {
|
|
struct card_cfg_hdr hdr;
|
|
struct card_cfg_data data;
|
|
};
|
|
|
|
/* Vendor ID Values */
|
|
#define RSXX_VENDOR_ID_IBM 0
|
|
#define RSXX_VENDOR_ID_DSI 1
|
|
#define RSXX_VENDOR_COUNT 2
|
|
|
|
/* Interrupt Coalescing Values */
|
|
#define RSXX_INTR_COAL_DISABLED 0
|
|
#define RSXX_INTR_COAL_EXPLICIT 1
|
|
#define RSXX_INTR_COAL_AUTO_TUNE 2
|
|
|
|
|
|
#endif /* __RSXX_CFG_H__ */
|
|
|