1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2013, Joyent, Inc. All rights reserved.
  24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25 #
  26 
  27 include $(SRC)/uts/Makefile.uts
  28 
  29 FILEMODE=644
  30 
  31 #
  32 #       Note that the following headers are present in the kernel but
  33 #       neither installed or shipped as part of the product:
  34 #               cpuid_drv.h:            Private interface for cpuid consumers
  35 #               unix_bb_info.h:         Private interface to kcov
  36 #
  37 
  38 i386_HDRS=                      \
  39         agp/agpamd64gart_io.h   \
  40         agp/agpdefs.h           \
  41         agp/agpgart_impl.h      \
  42         agp/agpmaster_io.h      \
  43         agp/agptarget_io.h      \
  44         agpgart.h               \
  45         asy.h                   \
  46         fd_debug.h              \
  47         fdc.h                   \
  48         fdmedia.h               \
  49         mouse.h                 \
  50         ucode.h
  51 
  52 sparc_HDRS=                     \
  53         mouse.h                 \
  54         scsi/targets/ssddef.h   \
  55         $(MDESCHDRS)
  56 
  57 # Generated headers
  58 GENHDRS=                        \
  59         priv_const.h            \
  60         priv_names.h            \
  61         usb/usbdevs.h
  62 
  63 CHKHDRS=                        \
  64         acpi_drv.h              \
  65         acct.h                  \
  66         acctctl.h               \
  67         acl.h                   \
  68         acl_impl.h              \
  69         aggr.h                  \
  70         aggr_impl.h             \
  71         aio.h                   \
  72         aio_impl.h              \
  73         aio_req.h               \
  74         aiocb.h                 \
  75         ascii.h                 \
  76         asynch.h                \
  77         atomic.h                \
  78         attr.h                  \
  79         audio.h                 \
  80         audioio.h               \
  81         autoconf.h              \
  82         auxv.h                  \
  83         auxv_386.h              \
  84         auxv_SPARC.h            \
  85         avl.h                   \
  86         avl_impl.h              \
  87         bitmap.h                \
  88         bitset.h                \
  89         bl.h                    \
  90         blkdev.h                \
  91         bofi.h                  \
  92         bofi_impl.h             \
  93         bpp_io.h                \
  94         bootstat.h              \
  95         brand.h                 \
  96         buf.h                   \
  97         bufmod.h                \
  98         bustypes.h              \
  99         byteorder.h             \
 100         callb.h                 \
 101         callo.h                 \
 102         cap_util.h              \
 103         cpucaps.h               \
 104         cpucaps_impl.h          \
 105         ccompile.h              \
 106         cdio.h                  \
 107         cladm.h                 \
 108         class.h                 \
 109         clconf.h                \
 110         clock_impl.h            \
 111         cmlb.h                  \
 112         cmn_err.h               \
 113         compress.h              \
 114         condvar.h               \
 115         condvar_impl.h          \
 116         conf.h                  \
 117         consdev.h               \
 118         console.h               \
 119         consplat.h              \
 120         vt.h                    \
 121         vtdaemon.h              \
 122         kd.h                    \
 123         contract.h              \
 124         contract_impl.h         \
 125         copyops.h               \
 126         core.h                  \
 127         corectl.h               \
 128         cpc_impl.h              \
 129         cpc_pcbe.h              \
 130         cpr.h                   \
 131         cpupart.h               \
 132         cpuvar.h                \
 133         crc32.h                 \
 134         cred.h                  \
 135         cred_impl.h             \
 136         crtctl.h                \
 137         cryptmod.h              \
 138         csiioctl.h              \
 139         ctf.h                   \
 140         ctfs.h                  \
 141         ctfs_impl.h             \
 142         ctf_api.h               \
 143         ctype.h                 \
 144         cyclic.h                \
 145         cyclic_impl.h           \
 146         dacf.h                  \
 147         dacf_impl.h             \
 148         damap.h                 \
 149         damap_impl.h            \
 150         dc_ki.h                 \
 151         ddi.h                   \
 152         ddifm.h                 \
 153         ddifm_impl.h            \
 154         ddi_hp.h                \
 155         ddi_hp_impl.h           \
 156         ddi_intr.h              \
 157         ddi_intr_impl.h         \
 158         ddi_impldefs.h          \
 159         ddi_implfuncs.h         \
 160         ddi_obsolete.h          \
 161         ddi_periodic.h          \
 162         ddidevmap.h             \
 163         ddidmareq.h             \
 164         ddimapreq.h             \
 165         ddipropdefs.h           \
 166         dditypes.h              \
 167         debug.h                 \
 168         des.h                   \
 169         devctl.h                \
 170         devcache.h              \
 171         devcache_impl.h         \
 172         devfm.h                 \
 173         devid_cache.h           \
 174         devinfo_impl.h          \
 175         devops.h                \
 176         devpolicy.h             \
 177         devpoll.h               \
 178         dirent.h                \
 179         disp.h                  \
 180         dkbad.h                 \
 181         dkio.h                  \
 182         dklabel.h               \
 183         dl.h                    \
 184         dlpi.h                  \
 185         dld.h                   \
 186         dld_impl.h              \
 187         dld_ioc.h               \
 188         dls.h                   \
 189         dls_mgmt.h              \
 190         dls_impl.h              \
 191         dma_i8237A.h            \
 192         dnlc.h                  \
 193         door.h                  \
 194         door_data.h             \
 195         door_impl.h             \
 196         dtrace.h                \
 197         dtrace_impl.h           \
 198         dumpadm.h               \
 199         dumphdr.h               \
 200         ecppsys.h               \
 201         ecppio.h                \
 202         ecppreg.h               \
 203         ecppvar.h               \
 204         efi_partition.h         \
 205         elf.h                   \
 206         elf_386.h               \
 207         elf_SPARC.h             \
 208         elf_notes.h             \
 209         elf_amd64.h             \
 210         elftypes.h              \
 211         emul64.h                \
 212         emul64cmd.h             \
 213         emul64var.h             \
 214         epm.h                   \
 215         errno.h                 \
 216         errorq.h                \
 217         errorq_impl.h           \
 218         esunddi.h               \
 219         ethernet.h              \
 220         euc.h                   \
 221         eucioctl.h              \
 222         exacct.h                \
 223         exacct_catalog.h        \
 224         exacct_impl.h           \
 225         exec.h                  \
 226         exechdr.h               \
 227         extdirent.h             \
 228         fault.h                 \
 229         fasttrap.h              \
 230         fasttrap_impl.h         \
 231         fbio.h                  \
 232         fbuf.h                  \
 233         fcntl.h                 \
 234         fct.h                   \
 235         fct_defines.h           \
 236         fctio.h                 \
 237         fdbuffer.h              \
 238         fdio.h                  \
 239         feature_tests.h         \
 240         fem.h                   \
 241         file.h                  \
 242         filio.h                 \
 243         flock.h                 \
 244         flock_impl.h            \
 245         fork.h                  \
 246         fss.h                   \
 247         fsspriocntl.h           \
 248         fsid.h                  \
 249         fssnap.h                \
 250         fssnap_if.h             \
 251         fstyp.h                 \
 252         ftrace.h                \
 253         fx.h                    \
 254         fxpriocntl.h            \
 255         gfs.h                   \
 256         gld.h                   \
 257         gldpriv.h               \
 258         group.h                 \
 259         hdio.h                  \
 260         hook.h                  \
 261         hook_event.h            \
 262         hook_impl.h             \
 263         hwconf.h                \
 264         ia.h                    \
 265         iapriocntl.h            \
 266         ibpart.h                \
 267         id32.h                  \
 268         idmap.h                 \
 269         ieeefp.h                \
 270         id_space.h              \
 271         instance.h              \
 272         int_const.h             \
 273         int_fmtio.h             \
 274         int_limits.h            \
 275         int_types.h             \
 276         inttypes.h              \
 277         ioccom.h                \
 278         ioctl.h                 \
 279         ipc.h                   \
 280         ipc_impl.h              \
 281         ipc_rctl.h              \
 282         ipd.h                   \
 283         ipmi.h                  \
 284         isa_defs.h              \
 285         iscsi_authclient.h      \
 286         iscsi_authclientglue.h  \
 287         iscsi_protocol.h        \
 288         jioctl.h                \
 289         kbd.h                   \
 290         kbdreg.h                \
 291         kbio.h                  \
 292         kcpc.h                  \
 293         kdi.h                   \
 294         kdi_impl.h              \
 295         kiconv.h                \
 296         kiconv_big5_utf8.h      \
 297         kiconv_cck_common.h     \
 298         kiconv_cp950hkscs_utf8.h        \
 299         kiconv_emea1.h          \
 300         kiconv_emea2.h          \
 301         kiconv_euckr_utf8.h     \
 302         kiconv_euctw_utf8.h     \
 303         kiconv_gb18030_utf8.h   \
 304         kiconv_gb2312_utf8.h    \
 305         kiconv_hkscs_utf8.h     \
 306         kiconv_ja.h             \
 307         kiconv_ja_jis_to_unicode.h      \
 308         kiconv_ja_unicode_to_jis.h      \
 309         kiconv_ko.h             \
 310         kiconv_latin1.h         \
 311         kiconv_sc.h             \
 312         kiconv_tc.h             \
 313         kiconv_uhc_utf8.h       \
 314         kiconv_utf8_big5.h      \
 315         kiconv_utf8_cp950hkscs.h        \
 316         kiconv_utf8_euckr.h     \
 317         kiconv_utf8_euctw.h     \
 318         kiconv_utf8_gb18030.h   \
 319         kiconv_utf8_gb2312.h    \
 320         kiconv_utf8_hkscs.h     \
 321         kiconv_utf8_uhc.h       \
 322         kidmap.h                \
 323         klpd.h                  \
 324         klwp.h                  \
 325         kmdb.h                  \
 326         kmem.h                  \
 327         kmem_impl.h             \
 328         kobj.h                  \
 329         kobj_impl.h             \
 330         ksocket.h               \
 331         kstat.h                 \
 332         kstr.h                  \
 333         ksyms.h                 \
 334         ksynch.h                \
 335         ldterm.h                \
 336         lgrp.h                  \
 337         lgrp_user.h             \
 338         libc_kernel.h           \
 339         link.h                  \
 340         list.h                  \
 341         list_impl.h             \
 342         llc1.h                  \
 343         loadavg.h               \
 344         lock.h                  \
 345         lockfs.h                \
 346         lockstat.h              \
 347         lofi.h                  \
 348         log.h                   \
 349         logindmux.h             \
 350         logindmux_impl.h        \
 351         lwp.h                   \
 352         lwp_timer_impl.h        \
 353         lwp_upimutex_impl.h     \
 354         lpif.h                  \
 355         mac.h                   \
 356         mac_client.h            \
 357         mac_client_impl.h       \
 358         mac_ether.h             \
 359         mac_flow.h              \
 360         mac_flow_impl.h         \
 361         mac_impl.h              \
 362         mac_provider.h          \
 363         mac_soft_ring.h         \
 364         mac_stat.h              \
 365         machelf.h               \
 366         map.h                   \
 367         md4.h                   \
 368         md5.h                   \
 369         md5_consts.h            \
 370         mdi_impldefs.h          \
 371         mem.h                   \
 372         mem_config.h            \
 373         memlist.h               \
 374         mkdev.h                 \
 375         mhd.h                   \
 376         mii.h                   \
 377         miiregs.h               \
 378         mixer.h                 \
 379         mman.h                  \
 380         mmapobj.h               \
 381         mntent.h                \
 382         mntio.h                 \
 383         mnttab.h                \
 384         modctl.h                \
 385         mode.h                  \
 386         model.h                 \
 387         modhash.h               \
 388         modhash_impl.h          \
 389         mount.h                 \
 390         mouse.h                 \
 391         msacct.h                \
 392         msg.h                   \
 393         msg_impl.h              \
 394         msio.h                  \
 395         msreg.h                 \
 396         mtio.h                  \
 397         multidata.h             \
 398         multidata_impl.h        \
 399         mutex.h                 \
 400         nbmlock.h               \
 401         ndifm.h                 \
 402         ndi_impldefs.h          \
 403         net80211.h              \
 404         net80211_crypto.h       \
 405         net80211_ht.h           \
 406         net80211_proto.h        \
 407         netconfig.h             \
 408         neti.h                  \
 409         netstack.h              \
 410         nexusdefs.h             \
 411         note.h                  \
 412         nvpair.h                \
 413         nvpair_impl.h           \
 414         objfs.h                 \
 415         objfs_impl.h            \
 416         ontrap.h                \
 417         open.h                  \
 418         openpromio.h            \
 419         panic.h                 \
 420         param.h                 \
 421         pathconf.h              \
 422         pathname.h              \
 423         pattr.h                 \
 424         queue.h                 \
 425         serializer.h            \
 426         pbio.h                  \
 427         pci.h                   \
 428         pcie.h                  \
 429         pci_impl.h              \
 430         pci_tools.h             \
 431         pctypes.h               \
 432         pfmod.h                 \
 433         pg.h                    \
 434         pghw.h                  \
 435         physmem.h               \
 436         pkp_hash.h              \
 437         pm.h                    \
 438         policy.h                \
 439         poll.h                  \
 440         poll_impl.h             \
 441         pool.h                  \
 442         pool_impl.h             \
 443         pool_pset.h             \
 444         port.h                  \
 445         port_impl.h             \
 446         port_kernel.h           \
 447         portif.h                \
 448         ppmio.h                 \
 449         pppt_ic_if.h            \
 450         pppt_ioctl.h            \
 451         priocntl.h              \
 452         priv.h                  \
 453         priv_impl.h             \
 454         prnio.h                 \
 455         proc.h                  \
 456         processor.h             \
 457         procfs.h                \
 458         procset.h               \
 459         project.h               \
 460         protosw.h               \
 461         prsystm.h               \
 462         pset.h                  \
 463         pshot.h                 \
 464         ptem.h                  \
 465         ptms.h                  \
 466         ptyvar.h                \
 467         raidioctl.h             \
 468         ramdisk.h               \
 469         random.h                \
 470         rctl.h                  \
 471         rctl_impl.h             \
 472         rds.h                   \
 473         reboot.h                \
 474         refstr.h                \
 475         refstr_impl.h           \
 476         resource.h              \
 477         rlioctl.h               \
 478         rt.h                    \
 479         rtpriocntl.h            \
 480         rwlock.h                \
 481         rwlock_impl.h           \
 482         rwstlock.h              \
 483         sad.h                   \
 484         schedctl.h              \
 485         sdt.h                   \
 486         select.h                \
 487         sem.h                   \
 488         sem_impl.h              \
 489         sema_impl.h             \
 490         semaphore.h             \
 491         sendfile.h              \
 492         ser_sync.h              \
 493         session.h               \
 494         sha1.h                  \
 495         sha1_consts.h           \
 496         sha2.h                  \
 497         sha2_consts.h           \
 498         share.h                 \
 499         shm.h                   \
 500         shm_impl.h              \
 501         sid.h                   \
 502         siginfo.h               \
 503         signal.h                \
 504         sleepq.h                \
 505         smbios.h                \
 506         smbios_impl.h           \
 507         sobject.h               \
 508         socket.h                \
 509         socket_impl.h           \
 510         socket_proto.h          \
 511         socketvar.h             \
 512         sockfilter.h            \
 513         sockio.h                \
 514         soundcard.h             \
 515         squeue.h                \
 516         squeue_impl.h           \
 517         srn.h                   \
 518         stat.h                  \
 519         statfs.h                \
 520         statvfs.h               \
 521         stdbool.h               \
 522         stdint.h                \
 523         stermio.h               \
 524         stmf.h                  \
 525         stmf_defines.h          \
 526         stmf_ioctl.h            \
 527         stmf_sbd_ioctl.h        \
 528         stream.h                \
 529         strft.h                 \
 530         strlog.h                \
 531         strmdep.h               \
 532         stropts.h               \
 533         strredir.h              \
 534         strstat.h               \
 535         strsubr.h               \
 536         strsun.h                \
 537         strtty.h                \
 538         sunddi.h                \
 539         sunldi.h                \
 540         sunldi_impl.h           \
 541         sunmdi.h                \
 542         sunndi.h                \
 543         sunos_dhcp_class.h      \
 544         sunpm.h                 \
 545         suntpi.h                \
 546         suntty.h                \
 547         swap.h                  \
 548         synch.h                 \
 549         sysdc.h                 \
 550         sysdc_impl.h            \
 551         syscall.h               \
 552         sysconf.h               \
 553         sysconfig.h             \
 554         sysevent.h              \
 555         sysevent_impl.h         \
 556         sysinfo.h               \
 557         syslog.h                \
 558         sysmacros.h             \
 559         sysmsg_impl.h           \
 560         systeminfo.h            \
 561         systm.h                 \
 562         task.h                  \
 563         taskq.h                 \
 564         taskq_impl.h            \
 565         t_kuser.h               \
 566         t_lock.h                \
 567         telioctl.h              \
 568         termio.h                \
 569         termios.h               \
 570         termiox.h               \
 571         thread.h                \
 572         ticlts.h                \
 573         ticots.h                \
 574         ticotsord.h             \
 575         tihdr.h                 \
 576         time.h                  \
 577         time_impl.h             \
 578         time_std_impl.h         \
 579         timeb.h                 \
 580         timer.h                 \
 581         times.h                 \
 582         timex.h                 \
 583         timod.h                 \
 584         tirdwr.h                \
 585         tiuser.h                \
 586         tl.h                    \
 587         tnf.h                   \
 588         tnf_com.h               \
 589         tnf_probe.h             \
 590         tnf_writer.h            \
 591         todio.h                 \
 592         tpicommon.h             \
 593         ts.h                    \
 594         tspriocntl.h            \
 595         ttcompat.h              \
 596         ttold.h                 \
 597         tty.h                   \
 598         ttychars.h              \
 599         ttydev.h                \
 600         tuneable.h              \
 601         turnstile.h             \
 602         types.h                 \
 603         types32.h               \
 604         tzfile.h                \
 605         u8_textprep.h           \
 606         u8_textprep_data.h      \
 607         uadmin.h                \
 608         ucred.h                 \
 609         uio.h                   \
 610         ulimit.h                \
 611         un.h                    \
 612         unistd.h                \
 613         user.h                  \
 614         ustat.h                 \
 615         utime.h                 \
 616         utsname.h               \
 617         utssys.h                \
 618         uuid.h                  \
 619         va_impl.h               \
 620         va_list.h               \
 621         var.h                   \
 622         varargs.h               \
 623         vfs.h                   \
 624         vfs_opreg.h             \
 625         vfstab.h                \
 626         vgareg.h                \
 627         videodev2.h             \
 628         visual_io.h             \
 629         vlan.h                  \
 630         vm.h                    \
 631         vm_usage.h              \
 632         vmem.h                  \
 633         vmem_impl.h             \
 634         vmsystm.h               \
 635         vnic.h                  \
 636         vnic_impl.h             \
 637         vnode.h                 \
 638         vscan.h                 \
 639         vtoc.h                  \
 640         vtrace.h                \
 641         vuid_event.h            \
 642         vuid_wheel.h            \
 643         vuid_queue.h            \
 644         vuid_state.h            \
 645         vuid_store.h            \
 646         wait.h                  \
 647         waitq.h                 \
 648         wanboot_impl.h          \
 649         watchpoint.h            \
 650         winlockio.h             \
 651         zcons.h                 \
 652         zone.h                  \
 653         xti_inet.h              \
 654         xti_osi.h               \
 655         xti_xtiopt.h            \
 656         zmod.h
 657 
 658 HDRS=                           \
 659         $(GENHDRS)              \
 660         $(CHKHDRS)
 661 
 662 AUDIOHDRS=                      \
 663         ac97.h                  \
 664         audio_common.h          \
 665         audio_driver.h          \
 666         audio_oss.h             \
 667         g711.h
 668 
 669 AVHDRS=                         \
 670         iec61883.h
 671 
 672 BSCHDRS=                        \
 673         bscbus.h                \
 674         bscv_impl.h             \
 675         lom_ebuscodes.h         \
 676         lom_io.h                \
 677         lom_priv.h              \
 678         lombus.h
 679 
 680 MDESCHDRS=                      \
 681         mdesc.h                 \
 682         mdesc_impl.h            
 683 
 684 CPUDRVHDRS=                     \
 685         cpudrv.h
 686 
 687 CRYPTOHDRS=                     \
 688         elfsign.h               \
 689         ioctl.h                 \
 690         ioctladmin.h            \
 691         common.h                \
 692         impl.h                  \
 693         spi.h                   \
 694         api.h                   \
 695         ops_impl.h              \
 696         sched_impl.h
 697 
 698 DCAMHDRS=                       \
 699         dcam1394_io.h
 700 
 701 IBHDRS=                 \
 702         ib_types.h      \
 703         ib_pkt_hdrs.h
 704 
 705 IBTLHDRS=               \
 706         ibtl_types.h    \
 707         ibtl_status.h   \
 708         ibti.h          \
 709         ibti_cm.h       \
 710         ibci.h          \
 711         ibti_common.h   \
 712         ibvti.h         \
 713         ibtl_ci_types.h
 714 
 715 IBTLIMPLHDRS=           \
 716         ibtl_util.h
 717 
 718 IBNEXHDRS=              \
 719         ibnex_devctl.h
 720 
 721 IBMFHDRS=               \
 722         ibmf.h          \
 723         ibmf_msg.h      \
 724         ibmf_saa.h      \
 725         ibmf_utils.h
 726 
 727 IBMGTHDRS=              \
 728         ib_dm_attr.h    \
 729         ib_mad.h        \
 730         sm_attr.h       \
 731         sa_recs.h
 732 
 733 IBDHDRS=                \
 734         ibd.h
 735 
 736 OFHDRS=                 \
 737         ofa_solaris.h   \
 738         ofed_kernel.h
 739 
 740 RDMAHDRS=               \
 741         ib_addr.h       \
 742         ib_user_mad.h   \
 743         ib_user_sa.h    \
 744         ib_user_verbs.h \
 745         ib_verbs.h      \
 746         rdma_cm.h       \
 747         rdma_user_cm.h
 748 
 749 SOL_UVERBSHDRS=         \
 750         sol_uverbs.h    \
 751         sol_uverbs2ucma.h       \
 752         sol_uverbs_comp.h       \
 753         sol_uverbs_hca.h        \
 754         sol_uverbs_qp.h         \
 755         sol_uverbs_event.h
 756 
 757 SOL_UMADHDRS=           \
 758         sol_umad.h
 759 
 760 SOL_UCMAHDRS=           \
 761         sol_ucma.h      \
 762         sol_rdma_user_cm.h
 763 
 764 SOL_OFSHDRS=            \
 765         sol_cma.h       \
 766         sol_ib_cma.h    \
 767         sol_ofs_common.h        \
 768         sol_kverb_impl.h
 769 
 770 TAVORHDRS=              \
 771         tavor_ioctl.h
 772 
 773 HERMONHDRS=             \
 774         hermon_ioctl.h
 775 
 776 MLNXHDRS=               \
 777         mlnx_umap.h
 778 
 779 IDMHDRS=                \
 780         idm.h           \
 781         idm_impl.h      \
 782         idm_so.h        \
 783         idm_text.h      \
 784         idm_transport.h \
 785         idm_conn_sm.h
 786 
 787 ISCSITHDRS=             \
 788         radius_packet.h         \
 789         radius_protocol.h       \
 790         chap.h                  \
 791         isns_protocol.h         \
 792         iscsi_if.h              \
 793         iscsit_common.h
 794 
 795 ISOHDRS=                        \
 796         signal_iso.h
 797 
 798 DERIVED_LVMHDRS=        \
 799         md_mdiox.h              \
 800         md_basic.h              \
 801         mdmed.h                 \
 802         md_mhdx.h               \
 803         mdmn_commd.h
 804 
 805 LVMHDRS=                        \
 806         md_convert.h            \
 807         md_crc.h                \
 808         md_hotspares.h          \
 809         md_mddb.h               \
 810         md_mirror.h             \
 811         md_mirror_shared.h      \
 812         md_names.h              \
 813         md_notify.h             \
 814         md_raid.h               \
 815         md_rename.h             \
 816         md_sp.h                 \
 817         md_stripe.h             \
 818         md_trans.h              \
 819         mdio.h                  \
 820         mdvar.h                 
 821 
 822 ALL_LVMHDRS=                    \
 823         $(LVMHDRS)              \
 824         $(DERIVED_LVMHDRS)
 825 
 826 FMHDRS=                         \
 827         protocol.h              \
 828         util.h
 829 
 830 FMFSHDRS=                       \
 831         zfs.h
 832 
 833 FMIOHDRS=                       \
 834         ddi.h                   \
 835         disk.h                  \
 836         pci.h                   \
 837         scsi.h                  \
 838         sun4upci.h              \
 839         opl_mc_fm.h
 840 
 841 FSHDRS=                         \
 842         autofs.h                \
 843         cachefs_dir.h           \
 844         cachefs_dlog.h          \
 845         cachefs_filegrp.h       \
 846         cachefs_fs.h            \
 847         cachefs_fscache.h       \
 848         cachefs_ioctl.h         \
 849         cachefs_log.h           \
 850         decomp.h                \
 851         dv_node.h               \
 852         sdev_impl.h             \
 853         fifonode.h              \
 854         hsfs_isospec.h          \
 855         hsfs_node.h             \
 856         hsfs_rrip.h             \
 857         hsfs_spec.h             \
 858         hsfs_susp.h             \
 859         lofs_info.h             \
 860         lofs_node.h             \
 861         mntdata.h               \
 862         namenode.h              \
 863         pc_dir.h                \
 864         pc_fs.h                 \
 865         pc_label.h              \
 866         pc_node.h               \
 867         pxfs_ki.h               \
 868         snode.h                 \
 869         swapnode.h              \
 870         tmp.h                   \
 871         tmpnode.h               \
 872         udf_inode.h             \
 873         udf_volume.h            \
 874         ufs_acl.h               \
 875         ufs_bio.h               \
 876         ufs_filio.h             \
 877         ufs_fs.h                \
 878         ufs_fsdir.h             \
 879         ufs_inode.h             \
 880         ufs_lockfs.h            \
 881         ufs_log.h               \
 882         ufs_mount.h             \
 883         ufs_panic.h             \
 884         ufs_prot.h              \
 885         ufs_quota.h             \
 886         ufs_snap.h              \
 887         ufs_trans.h             \
 888         zfs.h                   \
 889         zut.h
 890 
 891 SCSIHDRS=               \
 892         scsi.h          \
 893         scsi_address.h  \
 894         scsi_ctl.h      \
 895         scsi_fm.h       \
 896         scsi_params.h   \
 897         scsi_pkt.h      \
 898         scsi_resource.h \
 899         scsi_types.h    \
 900         scsi_watch.h
 901 
 902 SCSICONFHDRS=           \
 903         autoconf.h      \
 904         device.h
 905 
 906 SCSIGENHDRS=            \
 907         commands.h      \
 908         dad_mode.h      \
 909         inquiry.h       \
 910         message.h       \
 911         mode.h          \
 912         persist.h       \
 913         sense.h         \
 914         sff_frames.h    \
 915         smp_frames.h    \
 916         status.h
 917 
 918 SCSIIMPLHDRS=           \
 919         commands.h      \
 920         inquiry.h       \
 921         mode.h          \
 922         scsi_reset_notify.h \
 923         scsi_sas.h      \
 924         sense.h         \
 925         services.h      \
 926         smp_transport.h \
 927         spc3_types.h    \
 928         status.h        \
 929         transport.h     \
 930         types.h         \
 931         uscsi.h         \
 932         usmp.h
 933 
 934 SCSITARGETSHDRS=        \
 935         ses.h           \
 936         sesio.h         \
 937         sgendef.h       \
 938         stdef.h         \
 939         sddef.h         \
 940         smp.h
 941 
 942 SCSIADHDRS=
 943 
 944 SCSICADHDRS=
 945 
 946 SCSIISCSIHDRS=          \
 947         iscsi_door.h    \
 948         iscsi_if.h
 949 
 950 SCSIVHCIHDRS=           \
 951         scsi_vhci.h     \
 952         mpapi_impl.h    \
 953         mpapi_scsi_vhci.h
 954 
 955 SDCARDHDRS=             \
 956         sda.h           \
 957         sda_impl.h      \
 958         sda_ioctl.h
 959 
 960 FC4HDRS=                        \
 961         fc_transport.h  \
 962         linkapp.h       \
 963         fc.h            \
 964         fcp.h           \
 965         fcal_transport.h \
 966         fcal.h          \
 967         fcal_linkapp.h  \
 968         fcio.h
 969 
 970 FCHDRS=                 \
 971         fc.h            \
 972         fcio.h          \
 973         fc_types.h      \
 974         fc_appif.h
 975 
 976 FCIMPLHDRS=             \
 977         fc_error.h      \
 978         fcph.h
 979 
 980 FCULPHDRS=              \
 981         fcp_util.h      \
 982         fcsm.h
 983 
 984 SATAGENHDRS=            \
 985         sata_hba.h      \
 986         sata_defs.h     \
 987         sata_cfgadm.h
 988 
 989 SYSEVENTHDRS=           \
 990         ap_driver.h     \
 991         dev.h           \
 992         domain.h        \
 993         dr.h            \
 994         env.h           \
 995         eventdefs.h     \
 996         ipmp.h          \
 997         pwrctl.h        \
 998         svm.h           \
 999         vrrp.h
1000 
1001 CONTRACTHDRS=           \
1002         process.h       \
1003         process_impl.h  \
1004         device.h        \
1005         device_impl.h
1006 
1007 USBHDRS=        \
1008         usba.h  \
1009         usbai.h
1010 
1011 UWBHDRS=        \
1012         uwb.h   \
1013         uwbai.h
1014 
1015 UWBAHDRS=       \
1016         uwba.h
1017 
1018 USBAUDHDRS=           \
1019         usb_audio.h
1020 
1021 USBHUBDHDRS=            \
1022         hub.h           \
1023         hubd_impl.h
1024 
1025 USBHIDHDRS=             \
1026         hid.h
1027 
1028 USBHWARCHDRS=           \
1029         hwarc.h
1030 
1031 USBMSHDRS=              \
1032         usb_bulkonly.h  \
1033         usb_cbi.h
1034 
1035 USBPRNHDRS=           \
1036         usb_printer.h
1037 
1038 USBCDCHDRS=             \
1039         usb_cdc.h
1040 
1041 USBVIDHDRS=           \
1042         usbvc.h
1043 
1044 USBWCMHDRS=             \
1045         usbwcm.h
1046 
1047 UGENHDRS=           \
1048         usb_ugen.h
1049 
1050 HOTPLUGHDRS=    \
1051         hpcsvc.h        \
1052         hpctrl.h
1053 
1054 HOTPLUGPCIHDRS= \
1055         pcicfg.h        \
1056         pcihp.h
1057 
1058 RSMHDRS= \
1059         rsm.h   \
1060         rsm_common.h    \
1061         rsmapi_common.h \
1062         rsmpi.h \
1063         rsmpi_driver.h  \
1064         rsmka_path_int.h
1065 
1066 TSOLHDRS=               \
1067         label.h         \
1068         label_macro.h   \
1069         priv.h          \
1070         tndb.h          \
1071         tsyscall.h
1072 
1073 I1394HDRS=              \
1074         cmd1394.h       \
1075         id1394.h        \
1076         ieee1212.h      \
1077         ieee1394.h      \
1078         ixl1394.h       \
1079         s1394_impl.h    \
1080         t1394.h
1081 
1082 # "cmdk" headers used on sparc
1083 SDKTPHDRS=              \
1084         dadkio.h        \
1085         fdisk.h
1086 
1087 # "cmdk" headers used on i386
1088 DKTPHDRS=               \
1089         altsctr.h       \
1090         bbh.h           \
1091         cm.h            \
1092         cmdev.h         \
1093         cmdk.h          \
1094         cmpkt.h         \
1095         controller.h    \
1096         dadev.h         \
1097         dadk.h          \
1098         dadkio.h        \
1099         fctypes.h       \
1100         fdisk.h         \
1101         flowctrl.h      \
1102         gda.h           \
1103         quetypes.h      \
1104         queue.h         \
1105         tgcom.h         \
1106         tgdk.h
1107 
1108 # "pc" header files used on i386
1109 PCHDRS=                 \
1110         avintr.h        \
1111         dma_engine.h    \
1112         i8272A.h        \
1113         pic.h           \
1114         pit.h           \
1115         rtc.h
1116 
1117 NXGEHDRS=                       \
1118         nxge.h                  \
1119         nxge_common.h           \
1120         nxge_common_impl.h      \
1121         nxge_defs.h             \
1122         nxge_hw.h               \
1123         nxge_impl.h             \
1124         nxge_ipp.h              \
1125         nxge_ipp_hw.h           \
1126         nxge_mac.h              \
1127         nxge_mac_hw.h           \
1128         nxge_fflp.h             \
1129         nxge_fflp_hw.h          \
1130         nxge_mii.h              \
1131         nxge_rxdma.h            \
1132         nxge_rxdma_hw.h         \
1133         nxge_txc.h              \
1134         nxge_txc_hw.h           \
1135         nxge_txdma.h            \
1136         nxge_txdma_hw.h         \
1137         nxge_virtual.h          \
1138         nxge_espc.h
1139 
1140 include Makefile.syshdrs
1141 
1142 dcam/%.check:   dcam/%.h
1143         $(DOT_H_CHECK)
1144 
1145 CHECKHDRS=                                              \
1146         $($(MACH)_HDRS:%.h=%.check)                     \
1147         $(AUDIOHDRS:%.h=audio/%.check)                  \
1148         $(AVHDRS:%.h=av/%.check)                        \
1149         $(BSCHDRS:%.h=%.check)                          \
1150         $(CHKHDRS:%.h=%.check)                          \
1151         $(CPUDRVHDRS:%.h=%.check)                       \
1152         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1153         $(DCAMHDRS:%.h=dcam/%.check)                    \
1154         $(FC4HDRS:%.h=fc4/%.check)                      \
1155         $(FCHDRS:%.h=fibre-channel/%.check)             \
1156         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1157         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1158         $(IBHDRS:%.h=ib/%.check)                        \
1159         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1160         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1161         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1162         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1163         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1164         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1165         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1166         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1167         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1168         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1169         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1170         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1171         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1172         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1173         $(IDMHDRS:%.h=idm/%.check)                      \
1174         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1175         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1176         $(ISOHDRS:%.h=iso/%.check)                      \
1177         $(FMHDRS:%.h=fm/%.check)                        \
1178         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1179         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1180         $(FSHDRS:%.h=fs/%.check)                        \
1181         $(LVMHDRS:%.h=lvm/%.check)                      \
1182         $(SCSIHDRS:%.h=scsi/%.check)                    \
1183         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1184         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1185         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1186         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1187         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1188         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1189         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1190         $(SATAGENHDRS:%.h=sata/%.check)                 \
1191         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1192         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1193         $(CONTRACTHDRS:%.h=contract/%.check)            \
1194         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1195         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1196         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1197         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1198         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1199         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1200         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1201         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1202         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1203         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1204         $(USBHDRS:%.h=usb/%.check)                      \
1205         $(UWBHDRS:%.h=uwb/%.check)                      \
1206         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1207         $(I1394HDRS:%.h=1394/%.check)                   \
1208         $(RSMHDRS:%.h=rsm/%.check)                      \
1209         $(TSOLHDRS:%.h=tsol/%.check)                    \
1210         $(NXGEHDRS:%.h=nxge/%.check)
1211 
1212 
1213 .KEEP_STATE:
1214 
1215 .PARALLEL:                      \
1216         $(CHECKHDRS)            \
1217         $(ROOTHDRS)             \
1218         $(ROOTAUDHDRS)          \
1219         $(ROOTAVHDRS)           \
1220         $(ROOTCRYPTOHDRS)       \
1221         $(ROOTDCAMHDRS)         \
1222         $(ROOTISOHDRS)          \
1223         $(ROOTIDMHDRS)          \
1224         $(ROOTISCSIHDRS)        \
1225         $(ROOTISCSITHDRS)       \
1226         $(ROOTFC4HDRS)          \
1227         $(ROOTFCHDRS)           \
1228         $(ROOTFCIMPLHDRS)       \
1229         $(ROOTFCULPHDRS)        \
1230         $(ROOTFMHDRS)           \
1231         $(ROOTFMIOHDRS)         \
1232         $(ROOTFMFSHDRS)         \
1233         $(ROOTFSHDRS)           \
1234         $(ROOTIBDHDRS)          \
1235         $(ROOTIBHDRS)           \
1236         $(ROOTIBTLHDRS)         \
1237         $(ROOTIBTLIMPLHDRS)     \
1238         $(ROOTIBNEXHDRS)        \
1239         $(ROOTIBMGTHDRS)        \
1240         $(ROOTIBMFHDRS)         \
1241         $(ROOTOFHDRS)           \
1242         $(ROOTRDMAHDRS)         \
1243         $(ROOTSOL_OFSHDRS)      \
1244         $(ROOTSOL_UMADHDRS)     \
1245         $(ROOTSOL_UVERBSHDRS)   \
1246         $(ROOTSOL_UCMAHDRS)     \
1247         $(ROOTTAVORHDRS)        \
1248         $(ROOTHERMONHDRS)       \
1249         $(ROOTMLNXHDRS)         \
1250         $(ROOTLVMHDRS)          \
1251         $(ROOTSCSIHDRS)         \
1252         $(ROOTSCSIADHDRS)       \
1253         $(ROOTSCSICONFHDRS)     \
1254         $(ROOTSCSIISCSIHDRS)    \
1255         $(ROOTSCSIGENHDRS)      \
1256         $(ROOTSCSIIMPLHDRS)     \
1257         $(ROOTSCSIVHCIHDRS)     \
1258         $(ROOTSDCARDHDRS)       \
1259         $(ROOTSYSEVENTHDRS)     \
1260         $(ROOTCONTRACTHDRS)     \
1261         $(ROOTUSBHDRS)          \
1262         $(ROOTUWBHDRS)          \
1263         $(ROOTUWBAHDRS)         \
1264         $(ROOTUSBAUDHDRS)       \
1265         $(ROOTUSBHUBDHDRS)      \
1266         $(ROOTUSBHIDHDRS)       \
1267         $(ROOTUSBHRCHDRS)       \
1268         $(ROOTUSBMSHDRS)        \
1269         $(ROOTUSBPRNHDRS)       \
1270         $(ROOTUSBCDCHDRS)       \
1271         $(ROOTUSBVIDHDRS)       \
1272         $(ROOTUSBWCMHDRS)       \
1273         $(ROOTUGENHDRS)         \
1274         $(ROOT1394HDRS)         \
1275         $(ROOTHOTPLUGHDRS)      \
1276         $(ROOTHOTPLUGPCIHDRS)   \
1277         $(ROOTRSMHDRS)          \
1278         $(ROOTTSOLHDRS)         \
1279         $($(MACH)_ROOTHDRS)
1280 
1281 
1282 install_h:                      \
1283         $(ROOTDIRS)             \
1284         LVMDERIVED_H            \
1285         .WAIT                   \
1286         $(ROOTHDRS)             \
1287         $(ROOTAUDHDRS)          \
1288         $(ROOTAVHDRS)           \
1289         $(ROOTCRYPTOHDRS)       \
1290         $(ROOTDCAMHDRS)         \
1291         $(ROOTISOHDRS)          \
1292         $(ROOTIDMHDRS)          \
1293         $(ROOTISCSIHDRS)        \
1294         $(ROOTISCSITHDRS)       \
1295         $(ROOTFC4HDRS)          \
1296         $(ROOTFCHDRS)           \
1297         $(ROOTFCIMPLHDRS)       \
1298         $(ROOTFCULPHDRS)        \
1299         $(ROOTFMHDRS)           \
1300         $(ROOTFMFSHDRS)         \
1301         $(ROOTFMIOHDRS)         \
1302         $(ROOTFSHDRS)           \
1303         $(ROOTIBDHDRS)          \
1304         $(ROOTIBHDRS)           \
1305         $(ROOTIBTLHDRS)         \
1306         $(ROOTIBTLIMPLHDRS)     \
1307         $(ROOTIBNEXHDRS)        \
1308         $(ROOTIBMGTHDRS)        \
1309         $(ROOTIBMFHDRS)         \
1310         $(ROOTOFHDRS)           \
1311         $(ROOTRDMAHDRS)         \
1312         $(ROOTSOL_OFSHDRS)      \
1313         $(ROOTSOL_UMADHDRS)     \
1314         $(ROOTSOL_UVERBSHDRS)   \
1315         $(ROOTSOL_UCMAHDRS)     \
1316         $(ROOTTAVORHDRS)        \
1317         $(ROOTHERMONHDRS)       \
1318         $(ROOTMLNXHDRS)         \
1319         $(ROOTLVMHDRS)          \
1320         $(ROOTSCSIHDRS)         \
1321         $(ROOTSCSIADHDRS)       \
1322         $(ROOTSCSIISCSIHDRS)    \
1323         $(ROOTSCSICONFHDRS)     \
1324         $(ROOTSCSIGENHDRS)      \
1325         $(ROOTSCSIIMPLHDRS)     \
1326         $(ROOTSCSIVHCIHDRS)     \
1327         $(ROOTSDCARDHDRS)       \
1328         $(ROOTSYSEVENTHDRS)     \
1329         $(ROOTCONTRACTHDRS)     \
1330         $(ROOTUWBHDRS)          \
1331         $(ROOTUWBAHDRS)         \
1332         $(ROOTUSBHDRS)          \
1333         $(ROOTUSBAUDHDRS)       \
1334         $(ROOTUSBHUBDHDRS)      \
1335         $(ROOTUSBHIDHDRS)       \
1336         $(ROOTUSBHRCHDRS)       \
1337         $(ROOTUSBMSHDRS)        \
1338         $(ROOTUSBPRNHDRS)       \
1339         $(ROOTUSBCDCHDRS)       \
1340         $(ROOTUSBVIDHDRS)       \
1341         $(ROOTUSBWCMHDRS)       \
1342         $(ROOTUGENHDRS)         \
1343         $(ROOT1394HDRS)         \
1344         $(ROOTHOTPLUGHDRS)      \
1345         $(ROOTHOTPLUGPCIHDRS)   \
1346         $(ROOTRSMHDRS)          \
1347         $(ROOTTSOLHDRS)         \
1348         $($(MACH)_ROOTHDRS)
1349 
1350 all_h: $(GENHDRS)
1351 
1352 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1353         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1354 
1355 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1356         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1357 
1358 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1359         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1360 
1361 LVMDERIVED_H:
1362         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1363 
1364 clean:
1365         $(RM) $(GENHDRS)
1366 
1367 clobber: clean
1368         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1369 
1370 check:  $(CHECKHDRS)
1371 
1372 FRC: