drivers/gpu/nova-core/fsp/hal/gb202.rs

Source file repositories/reference/linux-study-clean/drivers/gpu/nova-core/fsp/hal/gb202.rs

File Facts

System
Linux kernel
Corpus path
drivers/gpu/nova-core/fsp/hal/gb202.rs
Extension
.rs
Size
584 bytes
Lines
28
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

use kernel::io::Io;

use crate::{
    driver::Bar0,
    fsp::hal::FspHal,
    regs, //
};

struct Gb202;

impl FspHal for Gb202 {
    fn fsp_boot_status(&self, bar: Bar0<'_>) -> u32 {
        bar.read(regs::gb202::NV_THERM_I2CS_SCRATCH_FSP_BOOT_COMPLETE)
            .fsp_boot_complete()
            .into()
    }

    fn cot_version(&self) -> u16 {
        2
    }
}

const GB202: Gb202 = Gb202;
pub(super) const GB202_HAL: &dyn FspHal = &GB202;

Annotation

Implementation Notes