Displaying 1 result from an estimated 1 matches for "enable_device_mem".
2025 Feb 03
0
[PATCH 1/2] gpu: nova-core: add initial driver stub
...ble<Self::IdInfo> = &PCI_TABLE;
>> +
>> + fn probe(pdev: &mut pci::Device, _info: &Self::IdInfo) -> Result<Pin<KBox<Self>>> {
>> + dev_dbg!(pdev.as_ref(), "Probe Nova Core GPU driver.\n");
>> +
>> + pdev.enable_device_mem()?;
>> + pdev.set_master();
>> +
>> + let bar = pdev.iomap_region_sized::<BAR0_SIZE>(0, c_str!("nova-core"))?;
>> +
>> + let this = KBox::pin_init(
>> + try_pin_init!(Self {
>> + gpu <- Gpu::...