Skip to content
Snippets Groups Projects
Commit 2f87844d authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

docs: sdb.h: marked as 1.0, minor fixes

parent 330aa383
Branches
Tags
No related merge requests found
/*
* This is version 1.0 of sdb.h, as included the specification v1.0
*/
#ifndef __SDB_H__
#define __SDB_H__
#include <stdint.h> #include <stdint.h>
/* /*
...@@ -47,10 +52,10 @@ enum sdb_record_type { ...@@ -47,10 +52,10 @@ enum sdb_record_type {
/* Type 0: interconnect (first of the array) /* Type 0: interconnect (first of the array)
* *
* magic is 0x5344422D, sdb_records is the length of the table * sdb_records is the length of the table including this first
* including this first record, version is 1. The bus type * record, version is 1. The bus type is enumerated later.
* is enumerated later.
*/ */
#define SDB_MAGIC 0x5344422d /* "SDB-" */
struct sdb_interconnect { struct sdb_interconnect {
uint32_t sdb_magic; /* 0x00-0x03 */ uint32_t sdb_magic; /* 0x00-0x03 */
uint16_t sdb_records; /* 0x04-0x05 */ uint16_t sdb_records; /* 0x04-0x05 */
...@@ -117,3 +122,5 @@ enum sdb_bus_type { ...@@ -117,3 +122,5 @@ enum sdb_bus_type {
#define SDB_WB_ACCESS64 0x08 #define SDB_WB_ACCESS64 0x08
#define SDB_WB_LITTLE_ENDIAN 0x80 #define SDB_WB_LITTLE_ENDIAN 0x80
#endif /* __SDB_H__ */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment