mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-17 19:22:15 +01:00
33 lines
834 B
Go
33 lines
834 B
Go
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",
|
|
// the additional whitespace is intentional to avoid the "KVM V irtual Media" string
|
|
// Vendor (8 chars), product (16 chars)
|
|
"inquiry_string": "KVM Virtual Media",
|
|
},
|
|
}
|
|
|
|
var mtpConfig = gadgetConfigItem{
|
|
order: 3003,
|
|
device: "ffs.mtp",
|
|
path: []string{"functions", "ffs.mtp"},
|
|
configPath: []string{"ffs.mtp"},
|
|
}
|