mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
refactor(usb): move usbconfig to a seperated package
This commit is contained in:
23
internal/usbgadget/mass_storage.go
Normal file
23
internal/usbgadget/mass_storage.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package usbgadget
|
||||
|
||||
var massStorageBaseConfig = gadgetConfigItem{
|
||||
order: 3000,
|
||||
device: "mass_storage.usb0",
|
||||
path: []string{"functions", "mass_storage.usb0"},
|
||||
configPath: []string{"mass_storage.usb0"},
|
||||
attrs: gadgetAttributes{
|
||||
"stall": "1",
|
||||
},
|
||||
}
|
||||
|
||||
var massStorageLun0Config = gadgetConfigItem{
|
||||
order: 3001,
|
||||
path: []string{"functions", "mass_storage.usb0", "lun.0"},
|
||||
attrs: gadgetAttributes{
|
||||
"cdrom": "1",
|
||||
"ro": "1",
|
||||
"removable": "1",
|
||||
"file": "\n",
|
||||
"inquiry_string": "JetKVM Virtual Media",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user