probe_roms.h (ce2b3261b6765c3b80fda95426c73e8d3bb1b035) | probe_roms.h (e2f8db509fdd354bb7a68c86515e9d2d8909ccc9) |
---|---|
1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 46 unchanged lines hidden (view full) --- 55#ifndef _ISCI_PROBE_ROMS_H_ 56#define _ISCI_PROBE_ROMS_H_ 57 58#ifdef __KERNEL__ 59#include <linux/firmware.h> 60#include <linux/pci.h> 61#include "isci.h" 62 | 1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 46 unchanged lines hidden (view full) --- 55#ifndef _ISCI_PROBE_ROMS_H_ 56#define _ISCI_PROBE_ROMS_H_ 57 58#ifdef __KERNEL__ 59#include <linux/firmware.h> 60#include <linux/pci.h> 61#include "isci.h" 62 |
63struct isci_orom *isci_request_oprom(struct pci_dev *pdev); | 63#define SCIC_SDS_PARM_NO_SPEED 0 |
64 | 64 |
65/* generation 1 (i.e. 1.5 Gb/s) */ 66#define SCIC_SDS_PARM_GEN1_SPEED 1 67 68/* generation 2 (i.e. 3.0 Gb/s) */ 69#define SCIC_SDS_PARM_GEN2_SPEED 2 70 71/* generation 3 (i.e. 6.0 Gb/s) */ 72#define SCIC_SDS_PARM_GEN3_SPEED 3 73#define SCIC_SDS_PARM_MAX_SPEED SCIC_SDS_PARM_GEN3_SPEED 74 75/* parameters that can be set by module parameters */ 76struct scic_sds_user_parameters { 77 struct sci_phy_user_params { 78 /** 79 * This field specifies the NOTIFY (ENABLE SPIN UP) primitive 80 * insertion frequency for this phy index. 81 */ 82 u32 notify_enable_spin_up_insertion_frequency; 83 84 /** 85 * This method specifies the number of transmitted DWORDs within which 86 * to transmit a single ALIGN primitive. This value applies regardless 87 * of what type of device is attached or connection state. A value of 88 * 0 indicates that no ALIGN primitives will be inserted. 89 */ 90 u16 align_insertion_frequency; 91 92 /** 93 * This method specifies the number of transmitted DWORDs within which 94 * to transmit 2 ALIGN primitives. This applies for SAS connections 95 * only. A minimum value of 3 is required for this field. 96 */ 97 u16 in_connection_align_insertion_frequency; 98 99 /** 100 * This field indicates the maximum speed generation to be utilized 101 * by phys in the supplied port. 102 * - A value of 1 indicates generation 1 (i.e. 1.5 Gb/s). 103 * - A value of 2 indicates generation 2 (i.e. 3.0 Gb/s). 104 * - A value of 3 indicates generation 3 (i.e. 6.0 Gb/s). 105 */ 106 u8 max_speed_generation; 107 108 } phys[SCI_MAX_PHYS]; 109 110 /** 111 * This field specifies the maximum number of direct attached devices 112 * that can have power supplied to them simultaneously. 113 */ 114 u8 max_number_concurrent_device_spin_up; 115 116 /** 117 * This field specifies the number of seconds to allow a phy to consume 118 * power before yielding to another phy. 119 * 120 */ 121 u8 phy_spin_up_delay_interval; 122 123 /** 124 * These timer values specifies how long a link will remain open with no 125 * activity in increments of a microsecond, it can be in increments of 126 * 100 microseconds if the upper most bit is set. 127 * 128 */ 129 u16 stp_inactivity_timeout; 130 u16 ssp_inactivity_timeout; 131 132 /** 133 * These timer values specifies how long a link will remain open in increments 134 * of 100 microseconds. 135 * 136 */ 137 u16 stp_max_occupancy_timeout; 138 u16 ssp_max_occupancy_timeout; 139 140 /** 141 * This timer value specifies how long a link will remain open with no 142 * outbound traffic in increments of a microsecond. 143 * 144 */ 145 u8 no_outbound_task_timeout; 146 147}; 148 149/* XXX kill this union */ 150union scic_user_parameters { 151 /** 152 * This field specifies the user parameters specific to the 153 * Storage Controller Unit (SCU) Driver Standard (SDS) version 154 * 1. 155 */ 156 struct scic_sds_user_parameters sds1; 157}; 158 159#define SCIC_SDS_PARM_PHY_MASK_MIN 0x0 160#define SCIC_SDS_PARM_PHY_MASK_MAX 0xF 161#define MAX_CONCURRENT_DEVICE_SPIN_UP_COUNT 4 162 163struct scic_sds_oem_params; 164int scic_oem_parameters_validate(struct scic_sds_oem_params *oem); 165 |
|
65union scic_oem_parameters; | 166union scic_oem_parameters; |
66struct isci_orom; | 167void scic_oem_parameters_get(struct scic_sds_controller *scic, 168 union scic_oem_parameters *oem); |
67 | 169 |
68enum sci_status isci_parse_oem_parameters( 69 union scic_oem_parameters *oem_params, 70 struct isci_orom *orom, 71 int scu_index); | 170struct isci_orom; 171struct isci_orom *isci_request_oprom(struct pci_dev *pdev); 172enum sci_status isci_parse_oem_parameters(union scic_oem_parameters *oem, 173 struct isci_orom *orom, int scu_index); |
72struct isci_orom *isci_request_firmware(struct pci_dev *pdev, const struct firmware *fw); 73struct isci_orom *isci_get_efi_var(struct pci_dev *pdev); 74 75struct isci_oem_hdr { 76 u8 sig[4]; 77 u8 rev_major; 78 u8 rev_minor; 79 u16 len; --- 68 unchanged lines hidden (view full) --- 148 149 uint32_t afe_tx_amp_control0; 150 uint32_t afe_tx_amp_control1; 151 uint32_t afe_tx_amp_control2; 152 uint32_t afe_tx_amp_control3; 153 } phys[SCI_MAX_PHYS]; 154} __attribute__ ((packed)); 155 | 174struct isci_orom *isci_request_firmware(struct pci_dev *pdev, const struct firmware *fw); 175struct isci_orom *isci_get_efi_var(struct pci_dev *pdev); 176 177struct isci_oem_hdr { 178 u8 sig[4]; 179 u8 rev_major; 180 u8 rev_minor; 181 u16 len; --- 68 unchanged lines hidden (view full) --- 250 251 uint32_t afe_tx_amp_control0; 252 uint32_t afe_tx_amp_control1; 253 uint32_t afe_tx_amp_control2; 254 uint32_t afe_tx_amp_control3; 255 } phys[SCI_MAX_PHYS]; 256} __attribute__ ((packed)); 257 |
258/* XXX kill this union */ 259union scic_oem_parameters { 260 /** 261 * This field specifies the OEM parameters specific to the 262 * Storage Controller Unit (SCU) Driver Standard (SDS) version 263 * 1. 264 */ 265 struct scic_sds_oem_params sds1; 266}; 267 |
|
156struct isci_orom { 157 struct sci_bios_oem_param_block_hdr hdr; 158 struct scic_sds_oem_params ctrl[SCI_MAX_CONTROLLERS]; 159} __attribute__ ((packed)); 160 161#endif | 268struct isci_orom { 269 struct sci_bios_oem_param_block_hdr hdr; 270 struct scic_sds_oem_params ctrl[SCI_MAX_CONTROLLERS]; 271} __attribute__ ((packed)); 272 273#endif |