-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkcl.h
49 lines (39 loc) · 2.02 KB
/
kcl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/****************************************************************************
* *
* Copyright 2010-2015 ATI Technologies Inc., Markham, Ontario, CANADA. *
* All Rights Reserved. *
* *
* Your use and or redistribution of this software in source and \ or *
* binary form, with or without modification, is subject to: (i) your *
* ongoing acceptance of and compliance with the terms and conditions of *
* the ATI Technologies Inc. software End User License Agreement; and (ii) *
* your inclusion of this notice in any version of this software that you *
* use or redistribute. A copy of the ATI Technologies Inc. software End *
* User License Agreement is included with this software and is also *
* available by contacting ATI Technologies Inc. at http://www.ati.com *
* *
****************************************************************************/
/** \brief KCL OS independent generic interface declarations */
#ifndef KCL_H
#define KCL_H
#include "kcl_config.h"
#include "kcl_type.h"
/** KCL declarations */
//copy from linux kernel signal.h
typedef enum{
KCL_SIG_KILL = 9, //force kill
KCL_SIG_SEGV = 11, //segmentation fault
KCL_SIG_TERM = 15, //termination
}KCL_SIG;
typedef struct {
void *dev; // pci device handle
void *name; // firmware name to be loaded
unsigned long size; // firmware size
void *data; // firmware buffer address
void *fw; // firmware struct
}KCL_FIRMWARE;
extern void ATI_API_CALL KCL_SEND_SIG(int pid, KCL_SIG sig);
extern void ATI_API_CALL KCL_Init_Suspend_Console(void);
extern int ATI_API_CALL KCL_Request_Firmware(KCL_FIRMWARE *pFirmware);
extern int ATI_API_CALL KCL_Release_Firmware(KCL_FIRMWARE *pFirmware);
#endif