|
@@ -26,6 +26,8 @@
|
|
|
|
|
|
#include "amd_shared.h"
|
|
#include "amd_shared.h"
|
|
|
|
|
|
|
|
+struct cgs_device;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* enum cgs_gpu_mem_type - GPU memory types
|
|
* enum cgs_gpu_mem_type - GPU memory types
|
|
*/
|
|
*/
|
|
@@ -223,7 +225,7 @@ struct cgs_acpi_method_info {
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_gpu_mem_info_t)(void *cgs_device, enum cgs_gpu_mem_type type,
|
|
|
|
|
|
+typedef int (*cgs_gpu_mem_info_t)(struct cgs_device *cgs_device, enum cgs_gpu_mem_type type,
|
|
uint64_t *mc_start, uint64_t *mc_size,
|
|
uint64_t *mc_start, uint64_t *mc_size,
|
|
uint64_t *mem_size);
|
|
uint64_t *mem_size);
|
|
|
|
|
|
@@ -239,7 +241,7 @@ typedef int (*cgs_gpu_mem_info_t)(void *cgs_device, enum cgs_gpu_mem_type type,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_gmap_kmem_t)(void *cgs_device, void *kmem, uint64_t size,
|
|
|
|
|
|
+typedef int (*cgs_gmap_kmem_t)(struct cgs_device *cgs_device, void *kmem, uint64_t size,
|
|
uint64_t min_offset, uint64_t max_offset,
|
|
uint64_t min_offset, uint64_t max_offset,
|
|
cgs_handle_t *kmem_handle, uint64_t *mcaddr);
|
|
cgs_handle_t *kmem_handle, uint64_t *mcaddr);
|
|
|
|
|
|
@@ -250,7 +252,7 @@ typedef int (*cgs_gmap_kmem_t)(void *cgs_device, void *kmem, uint64_t size,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_gunmap_kmem_t)(void *cgs_device, cgs_handle_t kmem_handle);
|
|
|
|
|
|
+typedef int (*cgs_gunmap_kmem_t)(struct cgs_device *cgs_device, cgs_handle_t kmem_handle);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_alloc_gpu_mem() - Allocate GPU memory
|
|
* cgs_alloc_gpu_mem() - Allocate GPU memory
|
|
@@ -279,7 +281,7 @@ typedef int (*cgs_gunmap_kmem_t)(void *cgs_device, cgs_handle_t kmem_handle);
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_alloc_gpu_mem_t)(void *cgs_device, enum cgs_gpu_mem_type type,
|
|
|
|
|
|
+typedef int (*cgs_alloc_gpu_mem_t)(struct cgs_device *cgs_device, enum cgs_gpu_mem_type type,
|
|
uint64_t size, uint64_t align,
|
|
uint64_t size, uint64_t align,
|
|
uint64_t min_offset, uint64_t max_offset,
|
|
uint64_t min_offset, uint64_t max_offset,
|
|
cgs_handle_t *handle);
|
|
cgs_handle_t *handle);
|
|
@@ -291,7 +293,7 @@ typedef int (*cgs_alloc_gpu_mem_t)(void *cgs_device, enum cgs_gpu_mem_type type,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_free_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
+typedef int (*cgs_free_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_gmap_gpu_mem() - GPU-map GPU memory
|
|
* cgs_gmap_gpu_mem() - GPU-map GPU memory
|
|
@@ -303,7 +305,7 @@ typedef int (*cgs_free_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_gmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
|
|
|
|
|
|
+typedef int (*cgs_gmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
|
|
uint64_t *mcaddr);
|
|
uint64_t *mcaddr);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -315,7 +317,7 @@ typedef int (*cgs_gmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_gunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
+typedef int (*cgs_gunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_kmap_gpu_mem() - Kernel-map GPU memory
|
|
* cgs_kmap_gpu_mem() - Kernel-map GPU memory
|
|
@@ -326,7 +328,7 @@ typedef int (*cgs_gunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_kmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
|
|
|
|
|
|
+typedef int (*cgs_kmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
|
|
void **map);
|
|
void **map);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -336,7 +338,7 @@ typedef int (*cgs_kmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_kunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
+typedef int (*cgs_kunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_read_register() - Read an MMIO register
|
|
* cgs_read_register() - Read an MMIO register
|
|
@@ -345,7 +347,7 @@ typedef int (*cgs_kunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle);
|
|
*
|
|
*
|
|
* Return: register value
|
|
* Return: register value
|
|
*/
|
|
*/
|
|
-typedef uint32_t (*cgs_read_register_t)(void *cgs_device, unsigned offset);
|
|
|
|
|
|
+typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_write_register() - Write an MMIO register
|
|
* cgs_write_register() - Write an MMIO register
|
|
@@ -353,7 +355,7 @@ typedef uint32_t (*cgs_read_register_t)(void *cgs_device, unsigned offset);
|
|
* @offset: register offset
|
|
* @offset: register offset
|
|
* @value: register value
|
|
* @value: register value
|
|
*/
|
|
*/
|
|
-typedef void (*cgs_write_register_t)(void *cgs_device, unsigned offset,
|
|
|
|
|
|
+typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
|
|
uint32_t value);
|
|
uint32_t value);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -363,7 +365,7 @@ typedef void (*cgs_write_register_t)(void *cgs_device, unsigned offset,
|
|
*
|
|
*
|
|
* Return: register value
|
|
* Return: register value
|
|
*/
|
|
*/
|
|
-typedef uint32_t (*cgs_read_ind_register_t)(void *cgs_device, enum cgs_ind_reg space,
|
|
|
|
|
|
+typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
|
|
unsigned index);
|
|
unsigned index);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -372,7 +374,7 @@ typedef uint32_t (*cgs_read_ind_register_t)(void *cgs_device, enum cgs_ind_reg s
|
|
* @offset: register offset
|
|
* @offset: register offset
|
|
* @value: register value
|
|
* @value: register value
|
|
*/
|
|
*/
|
|
-typedef void (*cgs_write_ind_register_t)(void *cgs_device, enum cgs_ind_reg space,
|
|
|
|
|
|
+typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
|
|
unsigned index, uint32_t value);
|
|
unsigned index, uint32_t value);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -382,7 +384,7 @@ typedef void (*cgs_write_ind_register_t)(void *cgs_device, enum cgs_ind_reg spac
|
|
*
|
|
*
|
|
* Return: Value read
|
|
* Return: Value read
|
|
*/
|
|
*/
|
|
-typedef uint8_t (*cgs_read_pci_config_byte_t)(void *cgs_device, unsigned addr);
|
|
|
|
|
|
+typedef uint8_t (*cgs_read_pci_config_byte_t)(struct cgs_device *cgs_device, unsigned addr);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_read_pci_config_word() - Read word from PCI configuration space
|
|
* cgs_read_pci_config_word() - Read word from PCI configuration space
|
|
@@ -391,7 +393,7 @@ typedef uint8_t (*cgs_read_pci_config_byte_t)(void *cgs_device, unsigned addr);
|
|
*
|
|
*
|
|
* Return: Value read
|
|
* Return: Value read
|
|
*/
|
|
*/
|
|
-typedef uint16_t (*cgs_read_pci_config_word_t)(void *cgs_device, unsigned addr);
|
|
|
|
|
|
+typedef uint16_t (*cgs_read_pci_config_word_t)(struct cgs_device *cgs_device, unsigned addr);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_read_pci_config_dword() - Read dword from PCI configuration space
|
|
* cgs_read_pci_config_dword() - Read dword from PCI configuration space
|
|
@@ -400,7 +402,7 @@ typedef uint16_t (*cgs_read_pci_config_word_t)(void *cgs_device, unsigned addr);
|
|
*
|
|
*
|
|
* Return: Value read
|
|
* Return: Value read
|
|
*/
|
|
*/
|
|
-typedef uint32_t (*cgs_read_pci_config_dword_t)(void *cgs_device,
|
|
|
|
|
|
+typedef uint32_t (*cgs_read_pci_config_dword_t)(struct cgs_device *cgs_device,
|
|
unsigned addr);
|
|
unsigned addr);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -409,7 +411,7 @@ typedef uint32_t (*cgs_read_pci_config_dword_t)(void *cgs_device,
|
|
* @addr: address
|
|
* @addr: address
|
|
* @value: value to write
|
|
* @value: value to write
|
|
*/
|
|
*/
|
|
-typedef void (*cgs_write_pci_config_byte_t)(void *cgs_device, unsigned addr,
|
|
|
|
|
|
+typedef void (*cgs_write_pci_config_byte_t)(struct cgs_device *cgs_device, unsigned addr,
|
|
uint8_t value);
|
|
uint8_t value);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -418,7 +420,7 @@ typedef void (*cgs_write_pci_config_byte_t)(void *cgs_device, unsigned addr,
|
|
* @addr: address, must be word-aligned
|
|
* @addr: address, must be word-aligned
|
|
* @value: value to write
|
|
* @value: value to write
|
|
*/
|
|
*/
|
|
-typedef void (*cgs_write_pci_config_word_t)(void *cgs_device, unsigned addr,
|
|
|
|
|
|
+typedef void (*cgs_write_pci_config_word_t)(struct cgs_device *cgs_device, unsigned addr,
|
|
uint16_t value);
|
|
uint16_t value);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -427,7 +429,7 @@ typedef void (*cgs_write_pci_config_word_t)(void *cgs_device, unsigned addr,
|
|
* @addr: address, must be dword-aligned
|
|
* @addr: address, must be dword-aligned
|
|
* @value: value to write
|
|
* @value: value to write
|
|
*/
|
|
*/
|
|
-typedef void (*cgs_write_pci_config_dword_t)(void *cgs_device, unsigned addr,
|
|
|
|
|
|
+typedef void (*cgs_write_pci_config_dword_t)(struct cgs_device *cgs_device, unsigned addr,
|
|
uint32_t value);
|
|
uint32_t value);
|
|
|
|
|
|
|
|
|
|
@@ -441,7 +443,7 @@ typedef void (*cgs_write_pci_config_dword_t)(void *cgs_device, unsigned addr,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_get_pci_resource_t)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_get_pci_resource_t)(struct cgs_device *cgs_device,
|
|
enum cgs_resource_type resource_type,
|
|
enum cgs_resource_type resource_type,
|
|
uint64_t size,
|
|
uint64_t size,
|
|
uint64_t offset,
|
|
uint64_t offset,
|
|
@@ -458,7 +460,7 @@ typedef int (*cgs_get_pci_resource_t)(void *cgs_device,
|
|
* Return: Pointer to start of the table, or NULL on failure
|
|
* Return: Pointer to start of the table, or NULL on failure
|
|
*/
|
|
*/
|
|
typedef const void *(*cgs_atom_get_data_table_t)(
|
|
typedef const void *(*cgs_atom_get_data_table_t)(
|
|
- void *cgs_device, unsigned table,
|
|
|
|
|
|
+ struct cgs_device *cgs_device, unsigned table,
|
|
uint16_t *size, uint8_t *frev, uint8_t *crev);
|
|
uint16_t *size, uint8_t *frev, uint8_t *crev);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -470,7 +472,7 @@ typedef const void *(*cgs_atom_get_data_table_t)(
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_atom_get_cmd_table_revs_t)(void *cgs_device, unsigned table,
|
|
|
|
|
|
+typedef int (*cgs_atom_get_cmd_table_revs_t)(struct cgs_device *cgs_device, unsigned table,
|
|
uint8_t *frev, uint8_t *crev);
|
|
uint8_t *frev, uint8_t *crev);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -481,7 +483,7 @@ typedef int (*cgs_atom_get_cmd_table_revs_t)(void *cgs_device, unsigned table,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_atom_exec_cmd_table_t)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_atom_exec_cmd_table_t)(struct cgs_device *cgs_device,
|
|
unsigned table, void *args);
|
|
unsigned table, void *args);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -491,7 +493,7 @@ typedef int (*cgs_atom_exec_cmd_table_t)(void *cgs_device,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_create_pm_request_t)(void *cgs_device, cgs_handle_t *request);
|
|
|
|
|
|
+typedef int (*cgs_create_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t *request);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_destroy_pm_request() - Destroy a power management request
|
|
* cgs_destroy_pm_request() - Destroy a power management request
|
|
@@ -500,7 +502,7 @@ typedef int (*cgs_create_pm_request_t)(void *cgs_device, cgs_handle_t *request);
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_destroy_pm_request_t)(void *cgs_device, cgs_handle_t request);
|
|
|
|
|
|
+typedef int (*cgs_destroy_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t request);
|
|
|
|
|
|
/**
|
|
/**
|
|
* cgs_set_pm_request() - Activate or deactiveate a PM request
|
|
* cgs_set_pm_request() - Activate or deactiveate a PM request
|
|
@@ -516,7 +518,7 @@ typedef int (*cgs_destroy_pm_request_t)(void *cgs_device, cgs_handle_t request);
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_set_pm_request_t)(void *cgs_device, cgs_handle_t request,
|
|
|
|
|
|
+typedef int (*cgs_set_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t request,
|
|
int active);
|
|
int active);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -528,7 +530,7 @@ typedef int (*cgs_set_pm_request_t)(void *cgs_device, cgs_handle_t request,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_pm_request_clock_t)(void *cgs_device, cgs_handle_t request,
|
|
|
|
|
|
+typedef int (*cgs_pm_request_clock_t)(struct cgs_device *cgs_device, cgs_handle_t request,
|
|
enum cgs_clock clock, unsigned freq);
|
|
enum cgs_clock clock, unsigned freq);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -540,7 +542,7 @@ typedef int (*cgs_pm_request_clock_t)(void *cgs_device, cgs_handle_t request,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_pm_request_engine_t)(void *cgs_device, cgs_handle_t request,
|
|
|
|
|
|
+typedef int (*cgs_pm_request_engine_t)(struct cgs_device *cgs_device, cgs_handle_t request,
|
|
enum cgs_engine engine, int powered);
|
|
enum cgs_engine engine, int powered);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -551,7 +553,7 @@ typedef int (*cgs_pm_request_engine_t)(void *cgs_device, cgs_handle_t request,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_pm_query_clock_limits_t)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_pm_query_clock_limits_t)(struct cgs_device *cgs_device,
|
|
enum cgs_clock clock,
|
|
enum cgs_clock clock,
|
|
struct cgs_clock_limits *limits);
|
|
struct cgs_clock_limits *limits);
|
|
|
|
|
|
@@ -563,7 +565,7 @@ typedef int (*cgs_pm_query_clock_limits_t)(void *cgs_device,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_set_camera_voltages_t)(void *cgs_device, uint32_t mask,
|
|
|
|
|
|
+typedef int (*cgs_set_camera_voltages_t)(struct cgs_device *cgs_device, uint32_t mask,
|
|
const uint32_t *voltages);
|
|
const uint32_t *voltages);
|
|
/**
|
|
/**
|
|
* cgs_get_firmware_info - Get the firmware information from core driver
|
|
* cgs_get_firmware_info - Get the firmware information from core driver
|
|
@@ -573,25 +575,25 @@ typedef int (*cgs_set_camera_voltages_t)(void *cgs_device, uint32_t mask,
|
|
*
|
|
*
|
|
* Return: 0 on success, -errno otherwise
|
|
* Return: 0 on success, -errno otherwise
|
|
*/
|
|
*/
|
|
-typedef int (*cgs_get_firmware_info)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device,
|
|
enum cgs_ucode_id type,
|
|
enum cgs_ucode_id type,
|
|
struct cgs_firmware_info *info);
|
|
struct cgs_firmware_info *info);
|
|
|
|
|
|
-typedef int(*cgs_set_powergating_state)(void *cgs_device,
|
|
|
|
|
|
+typedef int(*cgs_set_powergating_state)(struct cgs_device *cgs_device,
|
|
enum amd_ip_block_type block_type,
|
|
enum amd_ip_block_type block_type,
|
|
enum amd_powergating_state state);
|
|
enum amd_powergating_state state);
|
|
|
|
|
|
-typedef int(*cgs_set_clockgating_state)(void *cgs_device,
|
|
|
|
|
|
+typedef int(*cgs_set_clockgating_state)(struct cgs_device *cgs_device,
|
|
enum amd_ip_block_type block_type,
|
|
enum amd_ip_block_type block_type,
|
|
enum amd_clockgating_state state);
|
|
enum amd_clockgating_state state);
|
|
|
|
|
|
typedef int(*cgs_get_active_displays_info)(
|
|
typedef int(*cgs_get_active_displays_info)(
|
|
- void *cgs_device,
|
|
|
|
|
|
+ struct cgs_device *cgs_device,
|
|
struct cgs_display_info *info);
|
|
struct cgs_display_info *info);
|
|
|
|
|
|
-typedef int (*cgs_notify_dpm_enabled)(void *cgs_device, bool enabled);
|
|
|
|
|
|
+typedef int (*cgs_notify_dpm_enabled)(struct cgs_device *cgs_device, bool enabled);
|
|
|
|
|
|
-typedef int (*cgs_call_acpi_method)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_call_acpi_method)(struct cgs_device *cgs_device,
|
|
uint32_t acpi_method,
|
|
uint32_t acpi_method,
|
|
uint32_t acpi_function,
|
|
uint32_t acpi_function,
|
|
void *pinput, void *poutput,
|
|
void *pinput, void *poutput,
|
|
@@ -599,7 +601,7 @@ typedef int (*cgs_call_acpi_method)(void *cgs_device,
|
|
uint32_t input_size,
|
|
uint32_t input_size,
|
|
uint32_t output_size);
|
|
uint32_t output_size);
|
|
|
|
|
|
-typedef int (*cgs_query_system_info)(void *cgs_device,
|
|
|
|
|
|
+typedef int (*cgs_query_system_info)(struct cgs_device *cgs_device,
|
|
struct cgs_system_info *sys_info);
|
|
struct cgs_system_info *sys_info);
|
|
|
|
|
|
struct cgs_ops {
|
|
struct cgs_ops {
|