1 /* 2 * Copyright 2012 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 */ 23 24 #ifndef RADEON_ACPI_H 25 #define RADEON_ACPI_H 26 27 struct radeon_device; 28 struct acpi_bus_event; 29 30 int radeon_atif_handler(struct radeon_device *rdev, 31 struct acpi_bus_event *event); 32 33 /* AMD hw uses four ACPI control methods: 34 * 1. ATIF 35 * ARG0: (ACPI_INTEGER) function code 36 * ARG1: (ACPI_BUFFER) parameter buffer, 256 bytes 37 * OUTPUT: (ACPI_BUFFER) output buffer, 256 bytes 38 * ATIF provides an entry point for the gfx driver to interact with the sbios. 39 * The AMD ACPI notification mechanism uses Notify (VGA, 0x81) or a custom 40 * notification. Which notification is used as indicated by the ATIF Control 41 * Method GET_SYSTEM_PARAMETERS. When the driver receives Notify (VGA, 0x81) or 42 * a custom notification it invokes ATIF Control Method GET_SYSTEM_BIOS_REQUESTS 43 * to identify pending System BIOS requests and associated parameters. For 44 * example, if one of the pending requests is DISPLAY_SWITCH_REQUEST, the driver 45 * will perform display device detection and invoke ATIF Control Method 46 * SELECT_ACTIVE_DISPLAYS. 47 * 48 * 2. ATPX 49 * ARG0: (ACPI_INTEGER) function code 50 * ARG1: (ACPI_BUFFER) parameter buffer, 256 bytes 51 * OUTPUT: (ACPI_BUFFER) output buffer, 256 bytes 52 * ATPX methods are used on PowerXpress systems to handle mux switching and 53 * discrete GPU power control. 54 * 55 * 3. ATRM 56 * ARG0: (ACPI_INTEGER) offset of vbios rom data 57 * ARG1: (ACPI_BUFFER) size of the buffer to fill (up to 4K). 58 * OUTPUT: (ACPI_BUFFER) output buffer 59 * ATRM provides an interfacess to access the discrete GPU vbios image on 60 * PowerXpress systems with multiple GPUs. 61 * 62 * 4. ATCS 63 * ARG0: (ACPI_INTEGER) function code 64 * ARG1: (ACPI_BUFFER) parameter buffer, 256 bytes 65 * OUTPUT: (ACPI_BUFFER) output buffer, 256 bytes 66 * ATCS provides an interface to AMD chipset specific functionality. 67 * 68 */ 69 /* ATIF */ 70 #define ATIF_FUNCTION_VERIFY_INTERFACE 0x0 71 /* ARG0: ATIF_FUNCTION_VERIFY_INTERFACE 72 * ARG1: none 73 * OUTPUT: 74 * WORD - structure size in bytes (includes size field) 75 * WORD - version 76 * DWORD - supported notifications mask 77 * DWORD - supported functions bit vector 78 */ 79 /* Notifications mask */ 80 # define ATIF_DISPLAY_SWITCH_REQUEST_SUPPORTED (1 << 0) 81 # define ATIF_EXPANSION_MODE_CHANGE_REQUEST_SUPPORTED (1 << 1) 82 # define ATIF_THERMAL_STATE_CHANGE_REQUEST_SUPPORTED (1 << 2) 83 # define ATIF_FORCED_POWER_STATE_CHANGE_REQUEST_SUPPORTED (1 << 3) 84 # define ATIF_SYSTEM_POWER_SOURCE_CHANGE_REQUEST_SUPPORTED (1 << 4) 85 # define ATIF_DISPLAY_CONF_CHANGE_REQUEST_SUPPORTED (1 << 5) 86 # define ATIF_PX_GFX_SWITCH_REQUEST_SUPPORTED (1 << 6) 87 # define ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST_SUPPORTED (1 << 7) 88 # define ATIF_DGPU_DISPLAY_EVENT_SUPPORTED (1 << 8) 89 /* supported functions vector */ 90 # define ATIF_GET_SYSTEM_PARAMETERS_SUPPORTED (1 << 0) 91 # define ATIF_GET_SYSTEM_BIOS_REQUESTS_SUPPORTED (1 << 1) 92 # define ATIF_SELECT_ACTIVE_DISPLAYS_SUPPORTED (1 << 2) 93 # define ATIF_GET_LID_STATE_SUPPORTED (1 << 3) 94 # define ATIF_GET_TV_STANDARD_FROM_CMOS_SUPPORTED (1 << 4) 95 # define ATIF_SET_TV_STANDARD_IN_CMOS_SUPPORTED (1 << 5) 96 # define ATIF_GET_PANEL_EXPANSION_MODE_FROM_CMOS_SUPPORTED (1 << 6) 97 # define ATIF_SET_PANEL_EXPANSION_MODE_IN_CMOS_SUPPORTED (1 << 7) 98 # define ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED (1 << 12) 99 # define ATIF_GET_GRAPHICS_DEVICE_TYPES_SUPPORTED (1 << 14) 100 # define ATIF_GET_EXTERNAL_GPU_INFORMATION_SUPPORTED (1 << 20) 101 #define ATIF_FUNCTION_GET_SYSTEM_PARAMETERS 0x1 102 /* ARG0: ATIF_FUNCTION_GET_SYSTEM_PARAMETERS 103 * ARG1: none 104 * OUTPUT: 105 * WORD - structure size in bytes (includes size field) 106 * DWORD - valid flags mask 107 * DWORD - flags 108 * 109 * OR 110 * 111 * WORD - structure size in bytes (includes size field) 112 * DWORD - valid flags mask 113 * DWORD - flags 114 * BYTE - notify command code 115 * 116 * flags 117 * bits 1:0: 118 * 0 - Notify(VGA, 0x81) is not used for notification 119 * 1 - Notify(VGA, 0x81) is used for notification 120 * 2 - Notify(VGA, n) is used for notification where 121 * n (0xd0-0xd9) is specified in notify command code. 122 * bit 2: 123 * 1 - lid changes not reported though int10 124 */ 125 #define ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS 0x2 126 /* ARG0: ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS 127 * ARG1: none 128 * OUTPUT: 129 * WORD - structure size in bytes (includes size field) 130 * DWORD - pending sbios requests 131 * BYTE - panel expansion mode 132 * BYTE - thermal state: target gfx controller 133 * BYTE - thermal state: state id (0: exit state, non-0: state) 134 * BYTE - forced power state: target gfx controller 135 * BYTE - forced power state: state id 136 * BYTE - system power source 137 * BYTE - panel backlight level (0-255) 138 */ 139 /* pending sbios requests */ 140 # define ATIF_DISPLAY_SWITCH_REQUEST (1 << 0) 141 # define ATIF_EXPANSION_MODE_CHANGE_REQUEST (1 << 1) 142 # define ATIF_THERMAL_STATE_CHANGE_REQUEST (1 << 2) 143 # define ATIF_FORCED_POWER_STATE_CHANGE_REQUEST (1 << 3) 144 # define ATIF_SYSTEM_POWER_SOURCE_CHANGE_REQUEST (1 << 4) 145 # define ATIF_DISPLAY_CONF_CHANGE_REQUEST (1 << 5) 146 # define ATIF_PX_GFX_SWITCH_REQUEST (1 << 6) 147 # define ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST (1 << 7) 148 # define ATIF_DGPU_DISPLAY_EVENT (1 << 8) 149 /* panel expansion mode */ 150 # define ATIF_PANEL_EXPANSION_DISABLE 0 151 # define ATIF_PANEL_EXPANSION_FULL 1 152 # define ATIF_PANEL_EXPANSION_ASPECT 2 153 /* target gfx controller */ 154 # define ATIF_TARGET_GFX_SINGLE 0 155 # define ATIF_TARGET_GFX_PX_IGPU 1 156 # define ATIF_TARGET_GFX_PX_DGPU 2 157 /* system power source */ 158 # define ATIF_POWER_SOURCE_AC 1 159 # define ATIF_POWER_SOURCE_DC 2 160 # define ATIF_POWER_SOURCE_RESTRICTED_AC_1 3 161 # define ATIF_POWER_SOURCE_RESTRICTED_AC_2 4 162 #define ATIF_FUNCTION_SELECT_ACTIVE_DISPLAYS 0x3 163 /* ARG0: ATIF_FUNCTION_SELECT_ACTIVE_DISPLAYS 164 * ARG1: 165 * WORD - structure size in bytes (includes size field) 166 * WORD - selected displays 167 * WORD - connected displays 168 * OUTPUT: 169 * WORD - structure size in bytes (includes size field) 170 * WORD - selected displays 171 */ 172 # define ATIF_LCD1 (1 << 0) 173 # define ATIF_CRT1 (1 << 1) 174 # define ATIF_TV (1 << 2) 175 # define ATIF_DFP1 (1 << 3) 176 # define ATIF_CRT2 (1 << 4) 177 # define ATIF_LCD2 (1 << 5) 178 # define ATIF_DFP2 (1 << 7) 179 # define ATIF_CV (1 << 8) 180 # define ATIF_DFP3 (1 << 9) 181 # define ATIF_DFP4 (1 << 10) 182 # define ATIF_DFP5 (1 << 11) 183 # define ATIF_DFP6 (1 << 12) 184 #define ATIF_FUNCTION_GET_LID_STATE 0x4 185 /* ARG0: ATIF_FUNCTION_GET_LID_STATE 186 * ARG1: none 187 * OUTPUT: 188 * WORD - structure size in bytes (includes size field) 189 * BYTE - lid state (0: open, 1: closed) 190 * 191 * GET_LID_STATE only works at boot and resume, for general lid 192 * status, use the kernel provided status 193 */ 194 #define ATIF_FUNCTION_GET_TV_STANDARD_FROM_CMOS 0x5 195 /* ARG0: ATIF_FUNCTION_GET_TV_STANDARD_FROM_CMOS 196 * ARG1: none 197 * OUTPUT: 198 * WORD - structure size in bytes (includes size field) 199 * BYTE - 0 200 * BYTE - TV standard 201 */ 202 # define ATIF_TV_STD_NTSC 0 203 # define ATIF_TV_STD_PAL 1 204 # define ATIF_TV_STD_PALM 2 205 # define ATIF_TV_STD_PAL60 3 206 # define ATIF_TV_STD_NTSCJ 4 207 # define ATIF_TV_STD_PALCN 5 208 # define ATIF_TV_STD_PALN 6 209 # define ATIF_TV_STD_SCART_RGB 9 210 #define ATIF_FUNCTION_SET_TV_STANDARD_IN_CMOS 0x6 211 /* ARG0: ATIF_FUNCTION_SET_TV_STANDARD_IN_CMOS 212 * ARG1: 213 * WORD - structure size in bytes (includes size field) 214 * BYTE - 0 215 * BYTE - TV standard 216 * OUTPUT: none 217 */ 218 #define ATIF_FUNCTION_GET_PANEL_EXPANSION_MODE_FROM_CMOS 0x7 219 /* ARG0: ATIF_FUNCTION_GET_PANEL_EXPANSION_MODE_FROM_CMOS 220 * ARG1: none 221 * OUTPUT: 222 * WORD - structure size in bytes (includes size field) 223 * BYTE - panel expansion mode 224 */ 225 #define ATIF_FUNCTION_SET_PANEL_EXPANSION_MODE_IN_CMOS 0x8 226 /* ARG0: ATIF_FUNCTION_SET_PANEL_EXPANSION_MODE_IN_CMOS 227 * ARG1: 228 * WORD - structure size in bytes (includes size field) 229 * BYTE - panel expansion mode 230 * OUTPUT: none 231 */ 232 #define ATIF_FUNCTION_TEMPERATURE_CHANGE_NOTIFICATION 0xD 233 /* ARG0: ATIF_FUNCTION_TEMPERATURE_CHANGE_NOTIFICATION 234 * ARG1: 235 * WORD - structure size in bytes (includes size field) 236 * WORD - gfx controller id 237 * BYTE - current temperature (degress Celsius) 238 * OUTPUT: none 239 */ 240 #define ATIF_FUNCTION_GET_GRAPHICS_DEVICE_TYPES 0xF 241 /* ARG0: ATIF_FUNCTION_GET_GRAPHICS_DEVICE_TYPES 242 * ARG1: none 243 * OUTPUT: 244 * WORD - number of gfx devices 245 * WORD - device structure size in bytes (excludes device size field) 246 * DWORD - flags \ 247 * WORD - bus number } repeated structure 248 * WORD - device number / 249 */ 250 /* flags */ 251 # define ATIF_PX_REMOVABLE_GRAPHICS_DEVICE (1 << 0) 252 # define ATIF_XGP_PORT (1 << 1) 253 # define ATIF_VGA_ENABLED_GRAPHICS_DEVICE (1 << 2) 254 # define ATIF_XGP_PORT_IN_DOCK (1 << 3) 255 #define ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION 0x15 256 /* ARG0: ATIF_FUNCTION_GET_EXTERNAL_GPU_INFORMATION 257 * ARG1: none 258 * OUTPUT: 259 * WORD - number of reported external gfx devices 260 * WORD - device structure size in bytes (excludes device size field) 261 * WORD - flags \ 262 * WORD - bus number / repeated structure 263 */ 264 /* flags */ 265 # define ATIF_EXTERNAL_GRAPHICS_PORT (1 << 0) 266 267 /* ATPX */ 268 #define ATPX_FUNCTION_VERIFY_INTERFACE 0x0 269 /* ARG0: ATPX_FUNCTION_VERIFY_INTERFACE 270 * ARG1: none 271 * OUTPUT: 272 * WORD - structure size in bytes (includes size field) 273 * WORD - version 274 * DWORD - supported functions bit vector 275 */ 276 /* supported functions vector */ 277 # define ATPX_GET_PX_PARAMETERS_SUPPORTED (1 << 0) 278 # define ATPX_POWER_CONTROL_SUPPORTED (1 << 1) 279 # define ATPX_DISPLAY_MUX_CONTROL_SUPPORTED (1 << 2) 280 # define ATPX_I2C_MUX_CONTROL_SUPPORTED (1 << 3) 281 # define ATPX_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION_SUPPORTED (1 << 4) 282 # define ATPX_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION_SUPPORTED (1 << 5) 283 # define ATPX_GET_DISPLAY_CONNECTORS_MAPPING_SUPPORTED (1 << 7) 284 # define ATPX_GET_DISPLAY_DETECTION_PORTS_SUPPORTED (1 << 8) 285 #define ATPX_FUNCTION_GET_PX_PARAMETERS 0x1 286 /* ARG0: ATPX_FUNCTION_GET_PX_PARAMETERS 287 * ARG1: none 288 * OUTPUT: 289 * WORD - structure size in bytes (includes size field) 290 * DWORD - valid flags mask 291 * DWORD - flags 292 */ 293 /* flags */ 294 # define ATPX_LVDS_I2C_AVAILABLE_TO_BOTH_GPUS (1 << 0) 295 # define ATPX_CRT1_I2C_AVAILABLE_TO_BOTH_GPUS (1 << 1) 296 # define ATPX_DVI1_I2C_AVAILABLE_TO_BOTH_GPUS (1 << 2) 297 # define ATPX_CRT1_RGB_SIGNAL_MUXED (1 << 3) 298 # define ATPX_TV_SIGNAL_MUXED (1 << 4) 299 # define ATPX_DFP_SIGNAL_MUXED (1 << 5) 300 # define ATPX_SEPARATE_MUX_FOR_I2C (1 << 6) 301 # define ATPX_DYNAMIC_PX_SUPPORTED (1 << 7) 302 # define ATPX_ACF_NOT_SUPPORTED (1 << 8) 303 # define ATPX_FIXED_NOT_SUPPORTED (1 << 9) 304 # define ATPX_DYNAMIC_DGPU_POWER_OFF_SUPPORTED (1 << 10) 305 # define ATPX_DGPU_REQ_POWER_FOR_DISPLAYS (1 << 11) 306 # define ATPX_DGPU_CAN_DRIVE_DISPLAYS (1 << 12) 307 # define ATPX_MS_HYBRID_GFX_SUPPORTED (1 << 14) 308 #define ATPX_FUNCTION_POWER_CONTROL 0x2 309 /* ARG0: ATPX_FUNCTION_POWER_CONTROL 310 * ARG1: 311 * WORD - structure size in bytes (includes size field) 312 * BYTE - dGPU power state (0: power off, 1: power on) 313 * OUTPUT: none 314 */ 315 #define ATPX_FUNCTION_DISPLAY_MUX_CONTROL 0x3 316 /* ARG0: ATPX_FUNCTION_DISPLAY_MUX_CONTROL 317 * ARG1: 318 * WORD - structure size in bytes (includes size field) 319 * WORD - display mux control (0: iGPU, 1: dGPU) 320 * OUTPUT: none 321 */ 322 # define ATPX_INTEGRATED_GPU 0 323 # define ATPX_DISCRETE_GPU 1 324 #define ATPX_FUNCTION_I2C_MUX_CONTROL 0x4 325 /* ARG0: ATPX_FUNCTION_I2C_MUX_CONTROL 326 * ARG1: 327 * WORD - structure size in bytes (includes size field) 328 * WORD - i2c/aux/hpd mux control (0: iGPU, 1: dGPU) 329 * OUTPUT: none 330 */ 331 #define ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION 0x5 332 /* ARG0: ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION 333 * ARG1: 334 * WORD - structure size in bytes (includes size field) 335 * WORD - target gpu (0: iGPU, 1: dGPU) 336 * OUTPUT: none 337 */ 338 #define ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION 0x6 339 /* ARG0: ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION 340 * ARG1: 341 * WORD - structure size in bytes (includes size field) 342 * WORD - target gpu (0: iGPU, 1: dGPU) 343 * OUTPUT: none 344 */ 345 #define ATPX_FUNCTION_GET_DISPLAY_CONNECTORS_MAPPING 0x8 346 /* ARG0: ATPX_FUNCTION_GET_DISPLAY_CONNECTORS_MAPPING 347 * ARG1: none 348 * OUTPUT: 349 * WORD - number of display connectors 350 * WORD - connector structure size in bytes (excludes connector size field) 351 * BYTE - flags \ 352 * BYTE - ATIF display vector bit position } repeated 353 * BYTE - adapter id (0: iGPU, 1-n: dGPU ordered by pcie bus number) } structure 354 * WORD - connector ACPI id / 355 */ 356 /* flags */ 357 # define ATPX_DISPLAY_OUTPUT_SUPPORTED_BY_ADAPTER_ID_DEVICE (1 << 0) 358 # define ATPX_DISPLAY_HPD_SUPPORTED_BY_ADAPTER_ID_DEVICE (1 << 1) 359 # define ATPX_DISPLAY_I2C_SUPPORTED_BY_ADAPTER_ID_DEVICE (1 << 2) 360 #define ATPX_FUNCTION_GET_DISPLAY_DETECTION_PORTS 0x9 361 /* ARG0: ATPX_FUNCTION_GET_DISPLAY_DETECTION_PORTS 362 * ARG1: none 363 * OUTPUT: 364 * WORD - number of HPD/DDC ports 365 * WORD - port structure size in bytes (excludes port size field) 366 * BYTE - ATIF display vector bit position \ 367 * BYTE - hpd id } reapeated structure 368 * BYTE - ddc id / 369 * 370 * available on A+A systems only 371 */ 372 /* hpd id */ 373 # define ATPX_HPD_NONE 0 374 # define ATPX_HPD1 1 375 # define ATPX_HPD2 2 376 # define ATPX_HPD3 3 377 # define ATPX_HPD4 4 378 # define ATPX_HPD5 5 379 # define ATPX_HPD6 6 380 /* ddc id */ 381 # define ATPX_DDC_NONE 0 382 # define ATPX_DDC1 1 383 # define ATPX_DDC2 2 384 # define ATPX_DDC3 3 385 # define ATPX_DDC4 4 386 # define ATPX_DDC5 5 387 # define ATPX_DDC6 6 388 # define ATPX_DDC7 7 389 # define ATPX_DDC8 8 390 391 /* ATCS */ 392 #define ATCS_FUNCTION_VERIFY_INTERFACE 0x0 393 /* ARG0: ATCS_FUNCTION_VERIFY_INTERFACE 394 * ARG1: none 395 * OUTPUT: 396 * WORD - structure size in bytes (includes size field) 397 * WORD - version 398 * DWORD - supported functions bit vector 399 */ 400 /* supported functions vector */ 401 # define ATCS_GET_EXTERNAL_STATE_SUPPORTED (1 << 0) 402 # define ATCS_PCIE_PERFORMANCE_REQUEST_SUPPORTED (1 << 1) 403 # define ATCS_PCIE_DEVICE_READY_NOTIFICATION_SUPPORTED (1 << 2) 404 # define ATCS_SET_PCIE_BUS_WIDTH_SUPPORTED (1 << 3) 405 #define ATCS_FUNCTION_GET_EXTERNAL_STATE 0x1 406 /* ARG0: ATCS_FUNCTION_GET_EXTERNAL_STATE 407 * ARG1: none 408 * OUTPUT: 409 * WORD - structure size in bytes (includes size field) 410 * DWORD - valid flags mask 411 * DWORD - flags (0: undocked, 1: docked) 412 */ 413 /* flags */ 414 # define ATCS_DOCKED (1 << 0) 415 #define ATCS_FUNCTION_PCIE_PERFORMANCE_REQUEST 0x2 416 /* ARG0: ATCS_FUNCTION_PCIE_PERFORMANCE_REQUEST 417 * ARG1: 418 * WORD - structure size in bytes (includes size field) 419 * WORD - client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) 420 * WORD - valid flags mask 421 * WORD - flags 422 * BYTE - request type 423 * BYTE - performance request 424 * OUTPUT: 425 * WORD - structure size in bytes (includes size field) 426 * BYTE - return value 427 */ 428 /* flags */ 429 # define ATCS_ADVERTISE_CAPS (1 << 0) 430 # define ATCS_WAIT_FOR_COMPLETION (1 << 1) 431 /* request type */ 432 # define ATCS_PCIE_LINK_SPEED 1 433 /* performance request */ 434 # define ATCS_REMOVE 0 435 # define ATCS_FORCE_LOW_POWER 1 436 # define ATCS_PERF_LEVEL_1 2 /* PCIE Gen 1 */ 437 # define ATCS_PERF_LEVEL_2 3 /* PCIE Gen 2 */ 438 # define ATCS_PERF_LEVEL_3 4 /* PCIE Gen 3 */ 439 /* return value */ 440 # define ATCS_REQUEST_REFUSED 1 441 # define ATCS_REQUEST_COMPLETE 2 442 # define ATCS_REQUEST_IN_PROGRESS 3 443 #define ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION 0x3 444 /* ARG0: ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION 445 * ARG1: none 446 * OUTPUT: none 447 */ 448 #define ATCS_FUNCTION_SET_PCIE_BUS_WIDTH 0x4 449 /* ARG0: ATCS_FUNCTION_SET_PCIE_BUS_WIDTH 450 * ARG1: 451 * WORD - structure size in bytes (includes size field) 452 * WORD - client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) 453 * BYTE - number of active lanes 454 * OUTPUT: 455 * WORD - structure size in bytes (includes size field) 456 * BYTE - number of active lanes 457 */ 458 459 #endif 460