psci.c (866beaa0aa95deeba467db3dcb605ba3a5048a5b) | psci.c (0600af1ff16041f15633b2263a8ad9525eecd2f1) |
---|---|
1/*- 2 * Copyright (c) 2014 Robin Randhawa 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 330 unchanged lines hidden (view full) --- 339 340 if (psci_softc != NULL) 341 return (ENXIO); 342 343 KASSERT(psci_init != NULL, ("PSCI init function cannot be NULL")); 344 if (psci_init(dev, default_version)) 345 return (ENXIO); 346 | 1/*- 2 * Copyright (c) 2014 Robin Randhawa 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 330 unchanged lines hidden (view full) --- 339 340 if (psci_softc != NULL) 341 return (ENXIO); 342 343 KASSERT(psci_init != NULL, ("PSCI init function cannot be NULL")); 344 if (psci_init(dev, default_version)) 345 return (ENXIO); 346 |
347 smccc_init(); 348 |
|
347 psci_softc = sc; 348 349 return (0); 350} 351 352static int 353_psci_get_version(struct psci_softc *sc) 354{ --- 234 unchanged lines hidden --- | 349 psci_softc = sc; 350 351 return (0); 352} 353 354static int 355_psci_get_version(struct psci_softc *sc) 356{ --- 234 unchanged lines hidden --- |