Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
atom.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
#include "atom.h"
#include "atom-names.h"
#include "atom-bits.h"
#include "radeon.h"

Go to the source code of this file.

Data Structures

struct  atom_exec_context
 

Macros

#define ATOM_DEBUG
 
#define ATOM_COND_ABOVE   0
 
#define ATOM_COND_ABOVEOREQUAL   1
 
#define ATOM_COND_ALWAYS   2
 
#define ATOM_COND_BELOW   3
 
#define ATOM_COND_BELOWOREQUAL   4
 
#define ATOM_COND_EQUAL   5
 
#define ATOM_COND_NOTEQUAL   6
 
#define ATOM_PORT_ATI   0
 
#define ATOM_PORT_PCI   1
 
#define ATOM_PORT_SYSIO   2
 
#define ATOM_UNIT_MICROSEC   0
 
#define ATOM_UNIT_MILLISEC   1
 
#define PLL_INDEX   2
 
#define PLL_DATA   3
 
#define DEBUG(...)   do if (atom_debug) { printk(KERN_DEBUG __VA_ARGS__); } while (0)
 
#define SDEBUG(...)   do if (atom_debug) { printk(KERN_DEBUG); debug_print_spaces(debug_depth); printk(__VA_ARGS__); } while (0)
 

Functions

int atom_execute_table (struct atom_context *ctx, int index, uint32_t *params)
 
struct atom_contextatom_parse (struct card_info *card, void *bios)
 
int atom_asic_init (struct atom_context *ctx)
 
void atom_destroy (struct atom_context *ctx)
 
bool atom_parse_data_header (struct atom_context *ctx, int index, uint16_t *size, uint8_t *frev, uint8_t *crev, uint16_t *data_start)
 
bool atom_parse_cmd_header (struct atom_context *ctx, int index, uint8_t *frev, uint8_t *crev)
 
int atom_allocate_fb_scratch (struct atom_context *ctx)
 

Variables

int atom_debug = 0
 

Macro Definition Documentation

#define ATOM_COND_ABOVE   0

Definition at line 37 of file atom.c.

#define ATOM_COND_ABOVEOREQUAL   1

Definition at line 38 of file atom.c.

#define ATOM_COND_ALWAYS   2

Definition at line 39 of file atom.c.

#define ATOM_COND_BELOW   3

Definition at line 40 of file atom.c.

#define ATOM_COND_BELOWOREQUAL   4

Definition at line 41 of file atom.c.

#define ATOM_COND_EQUAL   5

Definition at line 42 of file atom.c.

#define ATOM_COND_NOTEQUAL   6

Definition at line 43 of file atom.c.

#define ATOM_DEBUG

Definition at line 30 of file atom.c.

#define ATOM_PORT_ATI   0

Definition at line 45 of file atom.c.

#define ATOM_PORT_PCI   1

Definition at line 46 of file atom.c.

#define ATOM_PORT_SYSIO   2

Definition at line 47 of file atom.c.

#define ATOM_UNIT_MICROSEC   0

Definition at line 49 of file atom.c.

#define ATOM_UNIT_MILLISEC   1

Definition at line 50 of file atom.c.

#define DEBUG (   ...)    do if (atom_debug) { printk(KERN_DEBUG __VA_ARGS__); } while (0)

Definition at line 95 of file atom.c.

#define PLL_DATA   3

Definition at line 53 of file atom.c.

#define PLL_INDEX   2

Definition at line 52 of file atom.c.

#define SDEBUG (   ...)    do if (atom_debug) { printk(KERN_DEBUG); debug_print_spaces(debug_depth); printk(__VA_ARGS__); } while (0)

Definition at line 96 of file atom.c.

Function Documentation

int atom_allocate_fb_scratch ( struct atom_context ctx)

Definition at line 1381 of file atom.c.

int atom_asic_init ( struct atom_context ctx)

Definition at line 1307 of file atom.c.

void atom_destroy ( struct atom_context ctx)

Definition at line 1336 of file atom.c.

int atom_execute_table ( struct atom_context ctx,
int  index,
uint32_t params 
)

Definition at line 1220 of file atom.c.

struct atom_context* atom_parse ( struct card_info card,
void bios 
)
read

Definition at line 1250 of file atom.c.

bool atom_parse_cmd_header ( struct atom_context ctx,
int  index,
uint8_t frev,
uint8_t crev 
)

Definition at line 1364 of file atom.c.

bool atom_parse_data_header ( struct atom_context ctx,
int  index,
uint16_t size,
uint8_t frev,
uint8_t crev,
uint16_t data_start 
)

Definition at line 1343 of file atom.c.

Variable Documentation

int arg

Definition at line 1033 of file atom.c.

int atom_debug = 0

Definition at line 65 of file atom.c.

void(* func)(atom_exec_context *, int *, int)

Definition at line 1032 of file atom.c.