linux/drivers/scsi/isci/init.c

/*
 * This file is provided under a dual BSD/GPLv2 license.  When using or
 * redistributing this file, you may do so under either license.
 *
 * GPL LICENSE SUMMARY
 *
 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * 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., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 * The full GNU General Public License is included in this distribution
 * in the file called LICENSE.GPL.
 *
 * BSD LICENSE
 *
 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   * Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *   * Neither the name of Intel Corporation nor the names of its
 *     contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/firmware.h>
#include <linux/efi.h>
#include <asm/string.h>
#include <scsi/scsi_host.h>
#include "host.h"
#include "isci.h"
#include "task.h"
#include "probe_roms.h"

#define DRV_VERSION

MODULE_VERSION();

static struct scsi_transport_template *isci_transport_template;

static const struct pci_device_id isci_id_table[] =;

MODULE_DEVICE_TABLE(pci, isci_id_table);

/* linux isci specific settings */

unsigned char no_outbound_task_to =;
module_param(no_outbound_task_to, byte, 0);
MODULE_PARM_DESC();

u16 ssp_max_occ_to =;
module_param(ssp_max_occ_to, ushort, 0);
MODULE_PARM_DESC();

u16 stp_max_occ_to =;
module_param(stp_max_occ_to, ushort, 0);
MODULE_PARM_DESC();

u16 ssp_inactive_to =;
module_param(ssp_inactive_to, ushort, 0);
MODULE_PARM_DESC();

u16 stp_inactive_to =;
module_param(stp_inactive_to, ushort, 0);
MODULE_PARM_DESC();

unsigned char phy_gen =;
module_param(phy_gen, byte, 0);
MODULE_PARM_DESC();

unsigned char max_concurr_spinup;
module_param(max_concurr_spinup, byte, 0);
MODULE_PARM_DESC();

uint cable_selection_override =;
module_param(cable_selection_override, uint, 0);

MODULE_PARM_DESC();

static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, char *buf)
{}

static DEVICE_ATTR(isci_id, S_IRUGO, isci_show_id, NULL);

static struct attribute *isci_host_attrs[] =;

ATTRIBUTE_GROUPS();

static const struct attribute_group *isci_sdev_groups[] =;

static const struct scsi_host_template isci_sht =;

static struct sas_domain_function_template isci_transport_ops  =;


/******************************************************************************
* P R O T E C T E D  M E T H O D S
******************************************************************************/



/**
 * isci_register_sas_ha() - This method initializes various lldd
 *    specific members of the sas_ha struct and calls the libsas
 *    sas_register_ha() function.
 * @isci_host: This parameter specifies the lldd specific wrapper for the
 *    libsas sas_ha struct.
 *
 * This method returns an error code indicating success or failure. The user
 * should check for possible memory allocation error return otherwise, a zero
 * indicates success.
 */
static int isci_register_sas_ha(struct isci_host *isci_host)
{}

static void isci_unregister(struct isci_host *isci_host)
{}

static int isci_pci_init(struct pci_dev *pdev)
{}

static int num_controllers(struct pci_dev *pdev)
{}

static int isci_setup_interrupts(struct pci_dev *pdev)
{}

static void isci_user_parameters_get(struct sci_user_parameters *u)
{}

static enum sci_status sci_user_parameters_set(struct isci_host *ihost,
					       struct sci_user_parameters *sci_parms)
{}

static void sci_oem_defaults(struct isci_host *ihost)
{}

static struct isci_host *isci_host_alloc(struct pci_dev *pdev, int id)
{}

static int isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{}

static void isci_pci_remove(struct pci_dev *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int isci_suspend(struct device *dev)
{}

static int isci_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(isci_pm_ops, isci_suspend, isci_resume);

static struct pci_driver isci_pci_driver =;

static __init int isci_init(void)
{}

static __exit void isci_exit(void)
{}

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_FIRMWARE();
module_init();
module_exit(isci_exit);