update bitflags for xhcid

This commit is contained in:
auronandace
2026-03-20 12:07:36 +00:00
parent e054af78c0
commit c88ab21c3f
4 changed files with 5 additions and 4 deletions
Generated
+1 -1
View File
@@ -2902,7 +2902,7 @@ dependencies = [
name = "xhcid"
version = "0.1.0"
dependencies = [
"bitflags 1.3.2",
"bitflags 2.11.0",
"chashmap",
"common",
"crossbeam-channel",
+1 -1
View File
@@ -13,7 +13,7 @@ name = "xhcid_interface"
path = "src/lib.rs"
[dependencies]
bitflags = "1"
bitflags.workspace = true
chashmap = "2.2.2"
crossbeam-channel = "0.4"
futures = "0.3"
+2 -2
View File
@@ -93,7 +93,7 @@ pub enum HubPortFeature {
}
bitflags::bitflags! {
#[derive(Default)]
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
#[repr(transparent)]
pub struct HubPortStatusV2: u32 {
const CONNECTION = 1 << 0;
@@ -120,7 +120,7 @@ bitflags::bitflags! {
unsafe impl plain::Plain for HubPortStatusV2 {}
bitflags::bitflags! {
#[derive(Default)]
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
#[repr(transparent)]
pub struct HubPortStatusV3: u32 {
const CONNECTION = 1 << 0;
+1
View File
@@ -9,6 +9,7 @@ use common::io::{Io, Mmio};
// Sticky register values may preserve values through chip hardware reset
bitflags! {
#[derive(Debug)]
pub struct PortFlags: u32 {
const CCS = 1 << 0; // ROS
const PED = 1 << 1; // RW1CS