Simplify encode/decode for PLDM bios commands

The encode/decode for PLDM bios commands was implemented
using extensive pointer arithmetic and memcpys. To reduce
the pointer usage and also for the simple assignments,
structures have been created for each of the PLDM bios commands.

Change-Id: I34aff3ee817c6c09a28556bd2fd8b60d07374ad2
Signed-off-by: Priyanga <priyram1@in.ibm.com>
diff --git a/libpldm/bios.h b/libpldm/bios.h
index 4bc00ed..cd35651 100644
--- a/libpldm/bios.h
+++ b/libpldm/bios.h
@@ -16,6 +16,20 @@
 
 enum pldm_bios_commands { PLDM_GET_DATE_TIME = 0x0c };
 
+/** @struct pldm_get_date_time_resp
+ *
+ *  Structure representing PLDM get date time response
+ */
+struct pldm_get_date_time_resp {
+	uint8_t completion_code; //!< completion code
+	uint8_t seconds;	 //!< Seconds in BCD format
+	uint8_t minutes;	 //!< Minutes in BCD format
+	uint8_t hours;		 //!< Hours in BCD format
+	uint8_t day;		 //!< Day of the month in BCD format
+	uint8_t month;		 //!< Month in BCD format
+	uint16_t year;		 //!< Year in BCD format
+} __attribute__((packed));
+
 /* Requester */
 
 /* GetDateTime */