mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	USB: Store device descriptor on enumeration
We now store the device descriptor obtained from the device during enumeration in the device's object in memory instead of exposing all of the different members contained within it.
This commit is contained in:
		
							parent
							
								
									7b42146f33
								
							
						
					
					
						commit
						71c9572e74
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -94,6 +94,7 @@ KResult Device::enumerate() | |||
|     VERIFY(transfer_length > 0); | ||||
|     m_address = s_next_usb_address++; | ||||
| 
 | ||||
|     memcpy(&m_device_descriptor, &dev_descriptor, sizeof(USBDeviceDescriptor)); | ||||
|     return KSuccess; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jesse Buhagiar
						Jesse Buhagiar