]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linker_lists.h
arm: mvebu: add Armada XP SATA support
[karo-tx-uboot.git] / include / linker_lists.h
index 940c87128194b654c364c477fc3ba864a523ffc0..b22d169d97966766122dd41a6e0c3aa573c0ec04 100644 (file)
  *   %u_boot_list_2_drivers_3
  */
 
+/**
+ * ll_sym() - Access a linker-generated array entry
+ * @_type:     Data type of the entry
+ * @_name:     Name of the entry
+ * @_list:     name of the list. Should contain only characters allowed
+ *             in a C variable name!
+ */
+#define llsym(_type, _name, _list) \
+               ((_type *)&_u_boot_list_2_##_list##_2_##_name)
+
 /**
  * ll_entry_declare() - Declare linker-generated array entry
  * @_type:     Data type of the entry