r8a66597-hcd.c (c67dda14389205f0a223c5089307495290939b3b) | r8a66597-hcd.c (a5797a686f4c7cbced782959509d735cfa1344b1) |
---|---|
1/* 2 * R8A66597 HCD (Host Controller Driver) 3 * 4 * Copyright (C) 2006-2007 Renesas Solutions Corp. 5 * Portions Copyright (C) 2004 Psion Teklogix (for NetBook PRO) 6 * Portions Copyright (C) 2004-2005 David Brownell 7 * Portions Copyright (C) 1999 Roman Weissgaerber 8 * --- 1051 unchanged lines hidden (view full) --- 1060 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; 1061 1062 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); 1063 if (speed == HSMODE) 1064 rh->port |= USB_PORT_STAT_HIGH_SPEED; 1065 else if (speed == LSMODE) 1066 rh->port |= USB_PORT_STAT_LOW_SPEED; 1067 | 1/* 2 * R8A66597 HCD (Host Controller Driver) 3 * 4 * Copyright (C) 2006-2007 Renesas Solutions Corp. 5 * Portions Copyright (C) 2004 Psion Teklogix (for NetBook PRO) 6 * Portions Copyright (C) 2004-2005 David Brownell 7 * Portions Copyright (C) 1999 Roman Weissgaerber 8 * --- 1051 unchanged lines hidden (view full) --- 1060 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; 1061 1062 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); 1063 if (speed == HSMODE) 1064 rh->port |= USB_PORT_STAT_HIGH_SPEED; 1065 else if (speed == LSMODE) 1066 rh->port |= USB_PORT_STAT_LOW_SPEED; 1067 |
1068 rh->port &= USB_PORT_STAT_RESET; | 1068 rh->port &= ~USB_PORT_STAT_RESET; |
1069 rh->port |= USB_PORT_STAT_ENABLE; 1070} 1071 1072/* this function must be called with interrupt disabled */ 1073static void r8a66597_usb_disconnect(struct r8a66597 *r8a66597, int port) 1074{ 1075 struct r8a66597_device *dev = r8a66597->root_hub[port].dev; 1076 --- 1493 unchanged lines hidden --- | 1069 rh->port |= USB_PORT_STAT_ENABLE; 1070} 1071 1072/* this function must be called with interrupt disabled */ 1073static void r8a66597_usb_disconnect(struct r8a66597 *r8a66597, int port) 1074{ 1075 struct r8a66597_device *dev = r8a66597->root_hub[port].dev; 1076 --- 1493 unchanged lines hidden --- |