Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bios.h
Go to the documentation of this file.
1 #ifndef __NOUVEAU_BIOS_H__
2 #define __NOUVEAU_BIOS_H__
3 
4 #include <core/subdev.h>
5 #include <core/device.h>
6 
7 struct nouveau_bios {
10  u8 *data;
11 
14 
15  struct {
20  } version;
21 };
22 
23 static inline struct nouveau_bios *
24 nouveau_bios(void *obj)
25 {
26  return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_VBIOS];
27 }
28 
29 u8 nvbios_checksum(const u8 *data, int size);
30 u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
31 
33 
34 #endif