aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-11 23:25:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:20:28 -0400
commit110e6f26af80dfd90b6e5c645b1aed7228aa580d (patch)
treea7e5d99bc6b2fc49461902fac77bdbd5496da5c1 /drivers/gpu/drm/amd/include
parentc036554170fcc2238c32a7edd72c1b61b886428a (diff)
drm/amd: make a type-safe cgs_device struct. (v2)
This is just a type-safety things to avoid everyone taking void *, it doesn't change anything. v2: agd5f: split out the dal changes into a separate patch. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
-rw-r--r--drivers/gpu/drm/amd/include/cgs_common.h76
-rw-r--r--drivers/gpu/drm/amd/include/cgs_linux.h6
2 files changed, 42 insertions, 40 deletions
diff --git a/drivers/gpu/drm/amd/include/cgs_common.h b/drivers/gpu/drm/amd/include/cgs_common.h
index ab84d4947247..ca1e22917e84 100644
--- a/drivers/gpu/drm/amd/include/cgs_common.h
+++ b/drivers/gpu/drm/amd/include/cgs_common.h
@@ -26,6 +26,8 @@
26 26
27#include "amd_shared.h" 27#include "amd_shared.h"
28 28
29struct cgs_device;
30
29/** 31/**
30 * enum cgs_gpu_mem_type - GPU memory types 32 * enum cgs_gpu_mem_type - GPU memory types
31 */ 33 */
@@ -223,7 +225,7 @@ struct cgs_acpi_method_info {
223 * 225 *
224 * Return: 0 on success, -errno otherwise 226 * Return: 0 on success, -errno otherwise
225 */ 227 */
226typedef int (*cgs_gpu_mem_info_t)(void *cgs_device, enum cgs_gpu_mem_type type, 228typedef int (*cgs_gpu_mem_info_t)(struct cgs_device *cgs_device, enum cgs_gpu_mem_type type,
227 uint64_t *mc_start, uint64_t *mc_size, 229 uint64_t *mc_start, uint64_t *mc_size,
228 uint64_t *mem_size); 230 uint64_t *mem_size);
229 231
@@ -239,7 +241,7 @@ typedef int (*cgs_gpu_mem_info_t)(void *cgs_device, enum cgs_gpu_mem_type type,
239 * 241 *
240 * Return: 0 on success, -errno otherwise 242 * Return: 0 on success, -errno otherwise
241 */ 243 */
242typedef int (*cgs_gmap_kmem_t)(void *cgs_device, void *kmem, uint64_t size, 244typedef int (*cgs_gmap_kmem_t)(struct cgs_device *cgs_device, void *kmem, uint64_t size,
243 uint64_t min_offset, uint64_t max_offset, 245 uint64_t min_offset, uint64_t max_offset,
244 cgs_handle_t *kmem_handle, uint64_t *mcaddr); 246 cgs_handle_t *kmem_handle, uint64_t *mcaddr);
245 247
@@ -250,7 +252,7 @@ typedef int (*cgs_gmap_kmem_t)(void *cgs_device, void *kmem, uint64_t size,
250 * 252 *
251 * Return: 0 on success, -errno otherwise 253 * Return: 0 on success, -errno otherwise
252 */ 254 */
253typedef int (*cgs_gunmap_kmem_t)(void *cgs_device, cgs_handle_t kmem_handle); 255typedef int (*cgs_gunmap_kmem_t)(struct cgs_device *cgs_device, cgs_handle_t kmem_handle);
254 256
255/** 257/**
256 * cgs_alloc_gpu_mem() - Allocate GPU memory 258 * 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);
279 * 281 *
280 * Return: 0 on success, -errno otherwise 282 * Return: 0 on success, -errno otherwise
281 */ 283 */
282typedef int (*cgs_alloc_gpu_mem_t)(void *cgs_device, enum cgs_gpu_mem_type type, 284typedef int (*cgs_alloc_gpu_mem_t)(struct cgs_device *cgs_device, enum cgs_gpu_mem_type type,
283 uint64_t size, uint64_t align, 285 uint64_t size, uint64_t align,
284 uint64_t min_offset, uint64_t max_offset, 286 uint64_t min_offset, uint64_t max_offset,
285 cgs_handle_t *handle); 287 cgs_handle_t *handle);
@@ -291,7 +293,7 @@ typedef int (*cgs_alloc_gpu_mem_t)(void *cgs_device, enum cgs_gpu_mem_type type,
291 * 293 *
292 * Return: 0 on success, -errno otherwise 294 * Return: 0 on success, -errno otherwise
293 */ 295 */
294typedef int (*cgs_free_gpu_mem_t)(void *cgs_device, cgs_handle_t handle); 296typedef int (*cgs_free_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
295 297
296/** 298/**
297 * cgs_gmap_gpu_mem() - GPU-map GPU memory 299 * 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);
303 * 305 *
304 * Return: 0 on success, -errno otherwise 306 * Return: 0 on success, -errno otherwise
305 */ 307 */
306typedef int (*cgs_gmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle, 308typedef int (*cgs_gmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
307 uint64_t *mcaddr); 309 uint64_t *mcaddr);
308 310
309/** 311/**
@@ -315,7 +317,7 @@ typedef int (*cgs_gmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
315 * 317 *
316 * Return: 0 on success, -errno otherwise 318 * Return: 0 on success, -errno otherwise
317 */ 319 */
318typedef int (*cgs_gunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle); 320typedef int (*cgs_gunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
319 321
320/** 322/**
321 * cgs_kmap_gpu_mem() - Kernel-map GPU memory 323 * 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);
326 * 328 *
327 * Return: 0 on success, -errno otherwise 329 * Return: 0 on success, -errno otherwise
328 */ 330 */
329typedef int (*cgs_kmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle, 331typedef int (*cgs_kmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
330 void **map); 332 void **map);
331 333
332/** 334/**
@@ -336,7 +338,7 @@ typedef int (*cgs_kmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle,
336 * 338 *
337 * Return: 0 on success, -errno otherwise 339 * Return: 0 on success, -errno otherwise
338 */ 340 */
339typedef int (*cgs_kunmap_gpu_mem_t)(void *cgs_device, cgs_handle_t handle); 341typedef int (*cgs_kunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
340 342
341/** 343/**
342 * cgs_read_register() - Read an MMIO register 344 * 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);
345 * 347 *
346 * Return: register value 348 * Return: register value
347 */ 349 */
348typedef uint32_t (*cgs_read_register_t)(void *cgs_device, unsigned offset); 350typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
349 351
350/** 352/**
351 * cgs_write_register() - Write an MMIO register 353 * cgs_write_register() - Write an MMIO register
@@ -353,7 +355,7 @@ typedef uint32_t (*cgs_read_register_t)(void *cgs_device, unsigned offset);
353 * @offset: register offset 355 * @offset: register offset
354 * @value: register value 356 * @value: register value
355 */ 357 */
356typedef void (*cgs_write_register_t)(void *cgs_device, unsigned offset, 358typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
357 uint32_t value); 359 uint32_t value);
358 360
359/** 361/**
@@ -363,7 +365,7 @@ typedef void (*cgs_write_register_t)(void *cgs_device, unsigned offset,
363 * 365 *
364 * Return: register value 366 * Return: register value
365 */ 367 */
366typedef uint32_t (*cgs_read_ind_register_t)(void *cgs_device, enum cgs_ind_reg space, 368typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
367 unsigned index); 369 unsigned index);
368 370
369/** 371/**
@@ -372,7 +374,7 @@ typedef uint32_t (*cgs_read_ind_register_t)(void *cgs_device, enum cgs_ind_reg s
372 * @offset: register offset 374 * @offset: register offset
373 * @value: register value 375 * @value: register value
374 */ 376 */
375typedef void (*cgs_write_ind_register_t)(void *cgs_device, enum cgs_ind_reg space, 377typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
376 unsigned index, uint32_t value); 378 unsigned index, uint32_t value);
377 379
378/** 380/**
@@ -382,7 +384,7 @@ typedef void (*cgs_write_ind_register_t)(void *cgs_device, enum cgs_ind_reg spac
382 * 384 *
383 * Return: Value read 385 * Return: Value read
384 */ 386 */
385typedef uint8_t (*cgs_read_pci_config_byte_t)(void *cgs_device, unsigned addr); 387typedef uint8_t (*cgs_read_pci_config_byte_t)(struct cgs_device *cgs_device, unsigned addr);
386 388
387/** 389/**
388 * cgs_read_pci_config_word() - Read word from PCI configuration space 390 * 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);
391 * 393 *
392 * Return: Value read 394 * Return: Value read
393 */ 395 */
394typedef uint16_t (*cgs_read_pci_config_word_t)(void *cgs_device, unsigned addr); 396typedef uint16_t (*cgs_read_pci_config_word_t)(struct cgs_device *cgs_device, unsigned addr);
395 397
396/** 398/**
397 * cgs_read_pci_config_dword() - Read dword from PCI configuration space 399 * 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);
400 * 402 *
401 * Return: Value read 403 * Return: Value read
402 */ 404 */
403typedef uint32_t (*cgs_read_pci_config_dword_t)(void *cgs_device, 405typedef uint32_t (*cgs_read_pci_config_dword_t)(struct cgs_device *cgs_device,
404 unsigned addr); 406 unsigned addr);
405 407
406/** 408/**
@@ -409,7 +411,7 @@ typedef uint32_t (*cgs_read_pci_config_dword_t)(void *cgs_device,
409 * @addr: address 411 * @addr: address
410 * @value: value to write 412 * @value: value to write
411 */ 413 */
412typedef void (*cgs_write_pci_config_byte_t)(void *cgs_device, unsigned addr, 414typedef void (*cgs_write_pci_config_byte_t)(struct cgs_device *cgs_device, unsigned addr,
413 uint8_t value); 415 uint8_t value);
414 416
415/** 417/**
@@ -418,7 +420,7 @@ typedef void (*cgs_write_pci_config_byte_t)(void *cgs_device, unsigned addr,
418 * @addr: address, must be word-aligned 420 * @addr: address, must be word-aligned
419 * @value: value to write 421 * @value: value to write
420 */ 422 */
421typedef void (*cgs_write_pci_config_word_t)(void *cgs_device, unsigned addr, 423typedef void (*cgs_write_pci_config_word_t)(struct cgs_device *cgs_device, unsigned addr,
422 uint16_t value); 424 uint16_t value);
423 425
424/** 426/**
@@ -427,7 +429,7 @@ typedef void (*cgs_write_pci_config_word_t)(void *cgs_device, unsigned addr,
427 * @addr: address, must be dword-aligned 429 * @addr: address, must be dword-aligned
428 * @value: value to write 430 * @value: value to write
429 */ 431 */
430typedef void (*cgs_write_pci_config_dword_t)(void *cgs_device, unsigned addr, 432typedef void (*cgs_write_pci_config_dword_t)(struct cgs_device *cgs_device, unsigned addr,
431 uint32_t value); 433 uint32_t value);
432 434
433 435
@@ -441,7 +443,7 @@ typedef void (*cgs_write_pci_config_dword_t)(void *cgs_device, unsigned addr,
441 * 443 *
442 * Return: 0 on success, -errno otherwise 444 * Return: 0 on success, -errno otherwise
443 */ 445 */
444typedef int (*cgs_get_pci_resource_t)(void *cgs_device, 446typedef int (*cgs_get_pci_resource_t)(struct cgs_device *cgs_device,
445 enum cgs_resource_type resource_type, 447 enum cgs_resource_type resource_type,
446 uint64_t size, 448 uint64_t size,
447 uint64_t offset, 449 uint64_t offset,
@@ -458,7 +460,7 @@ typedef int (*cgs_get_pci_resource_t)(void *cgs_device,
458 * Return: Pointer to start of the table, or NULL on failure 460 * Return: Pointer to start of the table, or NULL on failure
459 */ 461 */
460typedef const void *(*cgs_atom_get_data_table_t)( 462typedef const void *(*cgs_atom_get_data_table_t)(
461 void *cgs_device, unsigned table, 463 struct cgs_device *cgs_device, unsigned table,
462 uint16_t *size, uint8_t *frev, uint8_t *crev); 464 uint16_t *size, uint8_t *frev, uint8_t *crev);
463 465
464/** 466/**
@@ -470,7 +472,7 @@ typedef const void *(*cgs_atom_get_data_table_t)(
470 * 472 *
471 * Return: 0 on success, -errno otherwise 473 * Return: 0 on success, -errno otherwise
472 */ 474 */
473typedef int (*cgs_atom_get_cmd_table_revs_t)(void *cgs_device, unsigned table, 475typedef int (*cgs_atom_get_cmd_table_revs_t)(struct cgs_device *cgs_device, unsigned table,
474 uint8_t *frev, uint8_t *crev); 476 uint8_t *frev, uint8_t *crev);
475 477
476/** 478/**
@@ -481,7 +483,7 @@ typedef int (*cgs_atom_get_cmd_table_revs_t)(void *cgs_device, unsigned table,
481 * 483 *
482 * Return: 0 on success, -errno otherwise 484 * Return: 0 on success, -errno otherwise
483 */ 485 */
484typedef int (*cgs_atom_exec_cmd_table_t)(void *cgs_device, 486typedef int (*cgs_atom_exec_cmd_table_t)(struct cgs_device *cgs_device,
485 unsigned table, void *args); 487 unsigned table, void *args);
486 488
487/** 489/**
@@ -491,7 +493,7 @@ typedef int (*cgs_atom_exec_cmd_table_t)(void *cgs_device,
491 * 493 *
492 * Return: 0 on success, -errno otherwise 494 * Return: 0 on success, -errno otherwise
493 */ 495 */
494typedef int (*cgs_create_pm_request_t)(void *cgs_device, cgs_handle_t *request); 496typedef int (*cgs_create_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t *request);
495 497
496/** 498/**
497 * cgs_destroy_pm_request() - Destroy a power management request 499 * 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);
500 * 502 *
501 * Return: 0 on success, -errno otherwise 503 * Return: 0 on success, -errno otherwise
502 */ 504 */
503typedef int (*cgs_destroy_pm_request_t)(void *cgs_device, cgs_handle_t request); 505typedef int (*cgs_destroy_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t request);
504 506
505/** 507/**
506 * cgs_set_pm_request() - Activate or deactiveate a PM request 508 * 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);
516 * 518 *
517 * Return: 0 on success, -errno otherwise 519 * Return: 0 on success, -errno otherwise
518 */ 520 */
519typedef int (*cgs_set_pm_request_t)(void *cgs_device, cgs_handle_t request, 521typedef int (*cgs_set_pm_request_t)(struct cgs_device *cgs_device, cgs_handle_t request,
520 int active); 522 int active);
521 523
522/** 524/**
@@ -528,7 +530,7 @@ typedef int (*cgs_set_pm_request_t)(void *cgs_device, cgs_handle_t request,
528 * 530 *
529 * Return: 0 on success, -errno otherwise 531 * Return: 0 on success, -errno otherwise
530 */ 532 */
531typedef int (*cgs_pm_request_clock_t)(void *cgs_device, cgs_handle_t request, 533typedef int (*cgs_pm_request_clock_t)(struct cgs_device *cgs_device, cgs_handle_t request,
532 enum cgs_clock clock, unsigned freq); 534 enum cgs_clock clock, unsigned freq);
533 535
534/** 536/**
@@ -540,7 +542,7 @@ typedef int (*cgs_pm_request_clock_t)(void *cgs_device, cgs_handle_t request,
540 * 542 *
541 * Return: 0 on success, -errno otherwise 543 * Return: 0 on success, -errno otherwise
542 */ 544 */
543typedef int (*cgs_pm_request_engine_t)(void *cgs_device, cgs_handle_t request, 545typedef int (*cgs_pm_request_engine_t)(struct cgs_device *cgs_device, cgs_handle_t request,
544 enum cgs_engine engine, int powered); 546 enum cgs_engine engine, int powered);
545 547
546/** 548/**
@@ -551,7 +553,7 @@ typedef int (*cgs_pm_request_engine_t)(void *cgs_device, cgs_handle_t request,
551 * 553 *
552 * Return: 0 on success, -errno otherwise 554 * Return: 0 on success, -errno otherwise
553 */ 555 */
554typedef int (*cgs_pm_query_clock_limits_t)(void *cgs_device, 556typedef int (*cgs_pm_query_clock_limits_t)(struct cgs_device *cgs_device,
555 enum cgs_clock clock, 557 enum cgs_clock clock,
556 struct cgs_clock_limits *limits); 558 struct cgs_clock_limits *limits);
557 559
@@ -563,7 +565,7 @@ typedef int (*cgs_pm_query_clock_limits_t)(void *cgs_device,
563 * 565 *
564 * Return: 0 on success, -errno otherwise 566 * Return: 0 on success, -errno otherwise
565 */ 567 */
566typedef int (*cgs_set_camera_voltages_t)(void *cgs_device, uint32_t mask, 568typedef int (*cgs_set_camera_voltages_t)(struct cgs_device *cgs_device, uint32_t mask,
567 const uint32_t *voltages); 569 const uint32_t *voltages);
568/** 570/**
569 * cgs_get_firmware_info - Get the firmware information from core driver 571 * 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,
573 * 575 *
574 * Return: 0 on success, -errno otherwise 576 * Return: 0 on success, -errno otherwise
575 */ 577 */
576typedef int (*cgs_get_firmware_info)(void *cgs_device, 578typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device,
577 enum cgs_ucode_id type, 579 enum cgs_ucode_id type,
578 struct cgs_firmware_info *info); 580 struct cgs_firmware_info *info);
579 581
580typedef int(*cgs_set_powergating_state)(void *cgs_device, 582typedef int(*cgs_set_powergating_state)(struct cgs_device *cgs_device,
581 enum amd_ip_block_type block_type, 583 enum amd_ip_block_type block_type,
582 enum amd_powergating_state state); 584 enum amd_powergating_state state);
583 585
584typedef int(*cgs_set_clockgating_state)(void *cgs_device, 586typedef int(*cgs_set_clockgating_state)(struct cgs_device *cgs_device,
585 enum amd_ip_block_type block_type, 587 enum amd_ip_block_type block_type,
586 enum amd_clockgating_state state); 588 enum amd_clockgating_state state);
587 589
588typedef int(*cgs_get_active_displays_info)( 590typedef int(*cgs_get_active_displays_info)(
589 void *cgs_device, 591 struct cgs_device *cgs_device,
590 struct cgs_display_info *info); 592 struct cgs_display_info *info);
591 593
592typedef int (*cgs_notify_dpm_enabled)(void *cgs_device, bool enabled); 594typedef int (*cgs_notify_dpm_enabled)(struct cgs_device *cgs_device, bool enabled);
593 595
594typedef int (*cgs_call_acpi_method)(void *cgs_device, 596typedef int (*cgs_call_acpi_method)(struct cgs_device *cgs_device,
595 uint32_t acpi_method, 597 uint32_t acpi_method,
596 uint32_t acpi_function, 598 uint32_t acpi_function,
597 void *pinput, void *poutput, 599 void *pinput, void *poutput,
@@ -599,7 +601,7 @@ typedef int (*cgs_call_acpi_method)(void *cgs_device,
599 uint32_t input_size, 601 uint32_t input_size,
600 uint32_t output_size); 602 uint32_t output_size);
601 603
602typedef int (*cgs_query_system_info)(void *cgs_device, 604typedef int (*cgs_query_system_info)(struct cgs_device *cgs_device,
603 struct cgs_system_info *sys_info); 605 struct cgs_system_info *sys_info);
604 606
605struct cgs_ops { 607struct cgs_ops {
diff --git a/drivers/gpu/drm/amd/include/cgs_linux.h b/drivers/gpu/drm/amd/include/cgs_linux.h
index 3b47ae313e36..ca4f6007a9b3 100644
--- a/drivers/gpu/drm/amd/include/cgs_linux.h
+++ b/drivers/gpu/drm/amd/include/cgs_linux.h
@@ -66,7 +66,7 @@ typedef int (*cgs_irq_handler_func_t)(void *private_data,
66 * 66 *
67 * Return: 0 on success, -errno otherwise 67 * Return: 0 on success, -errno otherwise
68 */ 68 */
69typedef int (*cgs_add_irq_source_t)(void *cgs_device, unsigned src_id, 69typedef int (*cgs_add_irq_source_t)(struct cgs_device *cgs_device, unsigned src_id,
70 unsigned num_types, 70 unsigned num_types,
71 cgs_irq_source_set_func_t set, 71 cgs_irq_source_set_func_t set,
72 cgs_irq_handler_func_t handler, 72 cgs_irq_handler_func_t handler,
@@ -83,7 +83,7 @@ typedef int (*cgs_add_irq_source_t)(void *cgs_device, unsigned src_id,
83 * 83 *
84 * Return: 0 on success, -errno otherwise 84 * Return: 0 on success, -errno otherwise
85 */ 85 */
86typedef int (*cgs_irq_get_t)(void *cgs_device, unsigned src_id, unsigned type); 86typedef int (*cgs_irq_get_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);
87 87
88/** 88/**
89 * cgs_irq_put() - Indicate IRQ source is no longer needed 89 * cgs_irq_put() - Indicate IRQ source is no longer needed
@@ -98,7 +98,7 @@ typedef int (*cgs_irq_get_t)(void *cgs_device, unsigned src_id, unsigned type);
98 * 98 *
99 * Return: 0 on success, -errno otherwise 99 * Return: 0 on success, -errno otherwise
100 */ 100 */
101typedef int (*cgs_irq_put_t)(void *cgs_device, unsigned src_id, unsigned type); 101typedef int (*cgs_irq_put_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);
102 102
103struct cgs_os_ops { 103struct cgs_os_ops {
104 /* IRQ handling */ 104 /* IRQ handling */