1*aa0367d6SLoGin #[allow(dead_code)] 2*aa0367d6SLoGin #[derive(Debug, Copy, Clone, Eq, PartialEq)] 3*aa0367d6SLoGin #[repr(u8)] 4*aa0367d6SLoGin pub enum IpiKind { 5*aa0367d6SLoGin KickCpu, 6*aa0367d6SLoGin FlushTLB, 7*aa0367d6SLoGin } 8*aa0367d6SLoGin 9*aa0367d6SLoGin /// IPI投递目标 10*aa0367d6SLoGin #[derive(Debug, Copy, Clone, Eq, PartialEq)] 11*aa0367d6SLoGin #[allow(dead_code)] 12*aa0367d6SLoGin pub enum IpiTarget { 13*aa0367d6SLoGin /// 当前CPU 14*aa0367d6SLoGin Current, 15*aa0367d6SLoGin /// 所有CPU 16*aa0367d6SLoGin All, 17*aa0367d6SLoGin /// 除了当前CPU以外的所有CPU 18*aa0367d6SLoGin Other, 19*aa0367d6SLoGin /// 指定的CPU 20*aa0367d6SLoGin Specified(usize), 21*aa0367d6SLoGin } 22