Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / src / include / usb_ch9.h
index 13aa391cb3feb14c3dce8ca5a8a87a19eebf122a..b0aa7730f7df8f0aae457c81c63c0d625f554876 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2007 AMD
+ * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
+ */
+
 #ifndef USB_CH9_H
 #define USB_CH9_H
 
 
 #define USB_DEVICE_DEBUG_MODE           6       /* (special devices only) */
 
-//frim usb_ch9.h
 struct usb_ctrlrequest {
-        uint8_t bRequestType;
-        uint8_t bRequest;
-        uint16_t wValue;
-        uint16_t wIndex;
-        uint16_t wLength;
+        u bRequestType;
+        u bRequest;
+        u16 wValue;
+        u16 wIndex;
+        u16 wLength;
 } __attribute__ ((packed));
 
 struct usb_debug_descriptor {
-        uint8_t  bLength;
-        uint8_t  bDescriptorType;
+        u8  bLength;
+        u8  bDescriptorType;
 
         /* bulk endpoints with 8 byte maxpacket */
-        uint8_t  bDebugInEndpoint;
-        uint8_t  bDebugOutEndpoint;
+        u8  bDebugInEndpoint;
+        u8  bDebugOutEndpoint;
 };
 
 #endif